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 check if a directory exists?
State the advantages of shell scripting?
How do you schedule a command to run at 4:00 every morning?
What does $@ mean in shell?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
Is shell script a programming language?
How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.
How to modify the PATH variable and make it executable?
How can I Debug a shell scripts and Perl scripting?? or How do you debug a shell scripting and perl scripting ( at the compile time error or run time error) in Unix environment ?
How to write a function?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
Explain about stdin, stdout and stderr?