$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 是一款 Bash 和 POSIX 集成开发环境,支持 $path - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款