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

How Connect to a Database in Shell Programming?

4 Answers   Syntel,


What command needs to be used to take the backup?

0 Answers  


What is computer cli?

0 Answers  


What is a beat in a script?

0 Answers  


What is the lifespan of a variable inside a shell script?

0 Answers  






How to calculate the number of passed arguments?

0 Answers  


How do I run a script on mac?

0 Answers  


is this growing field and what is average package in this?

0 Answers  


What is a shell script in windows?

0 Answers  


Explain about "s" permission bit in a file?

0 Answers  


what is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly

4 Answers  


how will you find the total disk space used by a specific user?

0 Answers  


Categories