export NAME=valueArguments explained
- NAME is the variable name.
- value is the string assigned.
- -p lists exported variables in many shells.
Common examples
export EDITOR=vimMakes EDITOR visible to commands launched from this shell.
export PATH="$HOME/bin:$PATH"Prepends ~/bin for the current shell session.
| Field | Details |
|---|---|
| Command | export |
| Category | Shell and Environment |
| Primary use | Marks shell variables for child processes. |
| Syntax | export NAME=value |