HomePage > Components and HowTos > Environment
PATH defines a list of directories to search through when looking for a command to execute.
As in DOS, the shell uses the PATH variable to locate a command. PATH contains a list of directories separated by colons :
Entering echo $PATH in Puppy 5.29 returns-
Thus binary/executable/script file in the following directory can be called by only its name-
For example, entering mp starts mp text editor no need to specify /usr/bin/mp
The command env will list all the Linux Environment variables.
To list a specific variable with the echo command, prefixing the variable name with a dollar sign. For example echo $PATH