$PATH
–
Search Path for Commands
$PATH
defines where the shell searches for commands.
Separate entries with colons :
.
Entries are searched left to right.
When you invoke a command just by name, e.g. man
instead of /usr/bin/man
, then the executable file is searched in $PATH
.
In Zsh the variable $path
contains the same data as $PATH
, but as an array.
Links
BashSuport Pro ist eine Bash und POSIX IDE mit Unterstützung für $path – probieren Sie es aus!