- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PATH and MANPATH
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 10:59 AM
07-11-2002 10:59 AM
I'm trying to find out more information about the PATH and MANPATH files in /etc. Mainly, can I add directly to the file and if not, how do I add to it. Any info would be very helpful.
Thanks,
Ron
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:03 AM
07-11-2002 11:03 AM
Re: PATH and MANPATH
It is preferable to do any changes to the local .profile file in $HOME. To make any change just add these lines at the bootom of $HOME/.profile
export PATH=$PATH:/add_new_path
export MANPATH+$MANPTH:/add_mew_man_path
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:04 AM
07-11-2002 11:04 AM
Re: PATH and MANPATH
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:07 AM
07-11-2002 11:07 AM
Re: PATH and MANPATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:08 AM
07-11-2002 11:08 AM
Re: PATH and MANPATH
MANPATH=`cat /etc/MANPATH`
PATH=`cat /etc/PATH`
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:11 AM
07-11-2002 11:11 AM
Re: PATH and MANPATH
If you only need the changes for a given user or group of users, then the above methods would be perfered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:13 AM
07-11-2002 11:13 AM
Re: PATH and MANPATH
You can set the PATH and MANPATH in the .profile of the user.
export MANPATH=$MANPATH:/new-dir
export PATH=$PATH:/new-dir
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:15 AM
07-11-2002 11:15 AM
SolutionYes, you (or rather the superuser) can directly edit PATH and MANPATH. Simply use your favorite file editor (vi or whatever).
Since these are generally sourced by everyone logging into the system, you should only add paths that you want everyone to have. Otherwise, add the changes suggested to individuals' .profile files.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:23 AM
07-11-2002 11:23 AM
Re: PATH and MANPATH
Remember to keep frequently accessed directories in the front of the list for the fastest performance (access). Remember too, *never* to place "." in the PATH -- that's a classic invitation to trojan aliases.
It is much better to customize individual user's profiles if they are the only few who need additional pathes than to globally overload every user via /etc/profile (or via /etc/PATH and /etc/MANPATH (see '/etc/profile' itself).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 11:37 AM
07-11-2002 11:37 AM
Re: PATH and MANPATH
Thanks for correcting my typo error.
Thanks once again.
Regards
Sanjay