Friday, April 27, 2012

HowTo: Display / Echo Path Settings In Linux / UNIX / *BSD

How do I display my current path settings under Linux / FreeBSD / OpenBSD / NetBSD / Apple OS X / UNIX like operating systems using bash or ksh or csh / tcsh shell?

The PATH variable holds the list of directories which are searched when you type a program name. To check your PATH setting use the following command. Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following commands to see $PATH
echo $PATH
Sample outputs:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin


No comments:

Post a Comment