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"



UNIXguide.net
Suggest a Site