PATH Environment Variable
- Controls where commands are found
- PATH is a list of directory pathnames separated by colons (:).
- If a command does not begin with a slash, the shell tries finding the command in each directory in PATH. The first match is the command that is run.
- Sample PATH ...
- PATH=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/home/jim/bin
- Some people include "." in PATH.
- It may be a security problem.
Notes:
No notes for slide 25