PATH variable
The list of folders a terminal searches for a command you type.
PATH is an environment variable listing directories searched in order for executables; rustup adds ~/.cargo/bin to it.
Examples
command not found: rustcright after installing means~/.cargo/binis not on PATH yet;. "$HOME/.cargo/env"adds it to the current terminal.
See also