variable

Bash PATH — command search directories

Colon-separated search directories for external commands without a slash after earlier command-resolution steps. Avoid untrusted paths and empty components.

Formal Syntax & Structure

bash syntaxbash
PATH=directory[:directory...]

Return Value

string

Ordered directory list.

Working Example

Example Snippetbash
bash -c 'PATH=/usr/bin:/bin; command -v bash'
Bash Reference