Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 8.17 What should go in my PATH and MANPATH environment variables?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Schools ]


Top Document: comp.sys.hp.hpux FAQ
Previous Document: 8.16 What happened to "less"?
Next Document: 8.18 Why does the 10.x/11.x cksum command produce a different checksum than the 9.x cksum command?
See reader questions & answers on this topic! - Help others by sharing your knowledge
Updated: 03/05/01

PATH
----
At least:

  /usr/bin /usr/contrib/bin /usr/bin/X11 /usr/contrib/X11/bin
  /usr/contrib/bin/X11 /usr/local/bin

If you have the HP ANSI C compiler installed:

  /opt/ansic/bin /opt/langtools/bin /usr/ccs/bin

And, for system management stuff:

  /usr/sbin /sbin

Alternately, you can simply add the following to your .profile:

  PATH=`cat /etc/PATH`               # for sh or ksh
  setenv PATH `cat /etc/PATH`        # for csh

The "/etc/PATH" file is supposed to be updated every time new software
is installed under /opt/.  /etc/PATH will contain everything mentioned
above, except for "/usr/sbin" and "/sbin".

Simply add any additonal command directories you need.  For example:

  PATH="$HOME/bin:$PATH"

MANPATH
-------
First pull in /etc/MANPATH (works the same way as /etc/PATH):

  MANPATH=`cat /etc/MANPATH`         # for sh or ksh
  setenv MANPATH `cat /etc/MANPATH`  # for csh

Then add any additonal manual directories you need.  For example:

  MANPATH="$HOME/man:$MANPATH"

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.sys.hp.hpux FAQ
Previous Document: 8.16 What happened to "less"?
Next Document: 8.18 Why does the 10.x/11.x cksum command produce a different checksum than the 9.x cksum command?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
hpux.faq@gmail.com





Last Update March 27 2014 @ 02:11 PM