[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Single Page

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?


8.17 What should go in my PATH and MANPATH environment variables?


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"



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 October 22 2009 @ 05:25 AM

Some parts © 2009 Advameg, Inc.