$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.

BashSupport Pro is a Bash and POSIX IDE with support for $pathtry it now!
© 2020–2024 Joachim Ansorg
Privacy Policy