How to modify the PATH variable and make it executable?

Answers were Sorted based on User's Feedback



How to modify the PATH variable and make it executable?..

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

How to modify the PATH variable and make it executable?..

Answer / swaroopa

use setenv command to set the path

eg: setenv PATH "/workingdir/"

Is This Answer Correct ?    1 Yes 0 No

How to modify the PATH variable and make it executable?..

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

Post New Answer

More Shell Script Interview Questions

c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

0 Answers  


Why we are writting shell scripts? Plz if possible explain it briefly.

6 Answers   ITC Infotech,


What is the difference between bash and shell?

0 Answers  


Explain how you Automate your application using Shell scripting.

0 Answers   MAHINDRA,


How to print all the arguments provided to the script?

0 Answers  






What is the syntax of "grep" command?

4 Answers  


What exactly is a shell?

0 Answers  


What is the command to find out users on the system?

0 Answers  


What is Linux language details

0 Answers   Quick Heal,


What is $1 in shell scripting?

0 Answers  


how to read systems current date and time

4 Answers  


Why do we write bin bash in shell scripts?

0 Answers  


Categories