How do you set a PATH variable in UNIX?

How do you set a PATH variable in UNIX?
Answer
To add a PATH for any user with sh or bash shell permanantly use the following steps.
  1. Create a new file . profile in root(/) directory.
  2. Add the following lines into it. PATH= path to enter. export PATH.
  3. save the file.
  4. exit and login to server again.
  5. check using echo $PATH.
5 окт. 2013 г.
 

Tìm kiếm

Back
Top