Hi,
Quote:
Originally Posted by gubak
What means PATH environment?(an IP of a machine)to the script.
|
The PATH variable holds all directories that are searched when you call a program (or script).
Try
echo $PATH from within a terminal and you'll see a lot of directories separated by a :. This makes it possible to run a program/script from any location, without having to remember and add the full path to that program/script. It's a lot easier to run ls instead of /bin/ls.
You can manipulate this (as jschiwal already wrote) and add your own directory (~/bin is often used to place home-made scripts). The standard PATH is set in /etc/profile, personal additions can be added in ~/.profile.
To add a directory to the PATH variable you something like this:
export PATH=$PATH:/your/new/dir
Hope this clears things up a bit.