How do you determine and set the path in Unix?

How do you determine and set the path in Unix?
Answer
You may set $PATH permanently in two ways.
  1. To set the path for a particular user: You may need to make the entry in file . bash_profile in the home directory for the user. …
  2. To set a common path for all system users, you may need to set the path like this: echo “export PATH=$PATH:/path/to/dir” >> /etc/profile.
 

Tìm kiếm

Back
Top