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 |
What is the significance of the shebang line in shell scripting?
Explain about non-login shell files?
what do u mean by $#,$* in unix programming?
How shell works?
write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it, the data accepted from user till STOP, displays the no. of characters stored in the file.Program stops if directory name is null
What are the different methods available to run a shell script?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What is the use of "test" command?
What is the difference between running a script as ./scriptname.sh and sh scriptname.sh
what is the difference between cmp and diff commands
What language is shell scripting?
What language is bash written in?