How to modify the PATH variable and make it executable?
Answers were Sorted based on User's Feedback
Answer / shailendra kumar tiwary
we can set PATH by using export PATH command.
ex:-
PATH=/opt/j2sdk1.4.2_04/bin:............
export PATH
and to make it executable we can set the same
in ".bash_profile".
To execute it ". .bash_profile"
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / swaroopa
use setenv command to set the path
eg: setenv PATH "/workingdir/"
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kaustubh
In shell we can set any env variables in .bashrc file,
.bash_profile file in the user directory or fin /etc/bashrc
by setting variable name PATH(here)
and then export
example
PATH=$home/bin/
export PATH
| Is This Answer Correct ? | 1 Yes | 1 No |
How to find all the files modified in less than 3 days and save the record in a text file?
How do you find out What is your shell?
what are command line arguments? what is the need of those?
Can you write a script to portray how set –x works?
determine the output of the following command: echo ${new:-variable}
write a scwipt that a) takes exactly one argument, a directory name. b) if the number of argument is more or less than one,print a usage message c) if the argument is not adirectory, print another message d) for the given directory, print the five biggest files and the five files that were most recently modified. e) save the output to a file called q2output.
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
Explain about debugging?
What is the command to find out users on the system?
What are the various stages of a linux process it passes through?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.