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
How Can I Change the $PATH under Linux / UNIX?
See our faq "changing the path settings under Linux" for more information.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop




![Unix Copy Command Examples [ cp command ]](http://s13.cyberciti.org/images/shared/rp/3/11.jpg)





![Linux: Change the PATH [ Add New Directory ]](http://s13.cyberciti.org/images/shared/rp/3/16.jpg)
![[ERROR] /usr/local/libexec/mysqld: unknown variable ‘thread_concurrency=8′](http://s13.cyberciti.org/images/shared/rp/3/23.jpg)


{ 2 comments… read them below or add one }
Hi, I typed in $echo $path under USS in MVS and it did nothing.
I know its been a while.. still..for others : )
echo $PATH (path must be in caps)