env
printenv
Variables only accessible by the shell, not the subprocess
VAR=123
VAR=azerty
echo $VAR
Variables accessible by the subprocess
export VAR=123
export VAR=azerty
echo $VAR
$PATH
: List of directories (separated by:
) that tells the shell where to look to find exectable command$HOME
: Same as~
(because~
expand to$HOME
)$USER
: Username$SHELL
: Path to the shell executable$PWD
: Current directory (same aspwd
command)$LANG
: Locale settings (ex:en_US.UTF-8
)$TERM
: Name of the shell (ex:xterm
for MobaXterm)