PATH environment variable on UNIX

This goes for HPUX 11.23

/etc/PATH is a global variable. The /etc/PATH is the PATH used if you do not set the PATH command in /etc/default/login, /etc/profile, .profile files.

Every user may have, bud does not have to have, its own PATH. If the user does not have its own PATH, /etc/PATH is used.

How to add a folder into user’s PATH :
1. Log on as this user
2. $ export PATH=$PATH:/problematic-folder
This works until the next system reset.
To add it “for ever”, put as the last line in /etc/.profile the following :
export PATH=$PATH:/apsolute-path/to-the/problematic-folder

This entry was posted in Unix and tagged , . Bookmark the permalink.

Comments are closed.