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

What is echo $shell?

0 Answers  


What's the difference between scripting and coding?

0 Answers  


What is shell scripting?

0 Answers  


How to check if the previous command was run successfully?

0 Answers  


Can shell script run on windows?

0 Answers  


How do I run a shell script in powershell?

0 Answers  


How will you print the login names of all users on a system?

0 Answers  


What are the types of script?

0 Answers  


In shell scripting if text is surrounded by single quotes what does it denotes?

3 Answers  


What language is bash?

0 Answers  


How to debug the problems encountered in the shell script/program?

0 Answers  


How to make userdefined variables to available for all other shells?

4 Answers  


Categories