Nguyễn Thị Thúy Quỳnh
Member
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.
Answer
To add a PATH for any user with sh or bash shell permanantly use the following steps.
- Create a new file . profile in root(/) directory.
- Add the following lines into it. PATH= path to enter. export PATH.
- save the file.
- exit and login to server again.
- check using echo $PATH.