$PATH in Terminal June 3rd, 2014
$PATH is a variable used by Terminal for scanning through a colon-delineated list of paths to binaries. For example, when typing ls, sudo, npm, etc., Terminal searches through the paths for a match to the alias; when it finds a match it executes that binary.