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 |
Can shell script run on windows?
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 print the first array element?
What is the default shell of solaris?
What is the significance of $#?
how will you find the total disk space used by a specific user?
Write a shell program to test whether a given number is even or odd?
what are command line arguments? what is the need of those?
What is difference between bash and shell?
What are filters explain sort with all the options available?
What is shell environment?
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"