export NAME=value
export NAME=value
Risk: Safe
What it does
Pins a variable on the wall, so programs you start can read it.
When to use it
To give a program a setting, or to extend your PATH.
Example
$ export SHOP=KancilEvery program you start can read SHOP.
$ export PATH="$HOME/tools:$PATH"Search ~/tools first for commands.
$ envList every exported variable.
Learn it in: Environment variables and PATH · Official docs