PATH

The list of folders the shell searches when you type a command name.

Also called: command not found, which

Type
Term
Source
General
Language
Bash

In plain English

"command not found" right after installing something usually means its folder isn't in PATH yet.

Example

"composer: command not found" because its folder was not in PATH yet.

In code

echo $PATH
which php
export PATH="$HOME/.local/bin:$PATH"      # add to ~/.bashrc or ~/.zshrc

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30