All in System Administration

Starting in the shell: The PATH variable

Generally the commands you run in a shell are either built-in commands, or external programs. Unless it is a command that’s built into your shell itself (such as ‘echo’, which just outputs whatever input you give it), the shell uses an environment variable called PATH to know which directories to look for an executable file.