On this page
Environment Variables
For environment variables, when you don’t use them often, it’s not always easy to remember the commands.
To display your PATH:
echo $PATH
To display all environment variables:
env
To add something to your PATH:
PATH=$PATH:/path/to/add
To add a new environment variable:
MYVAR=/toto
export $MYVAR
Check with the env
command and it works! :-)
Last updated 21 Feb 2007, 15:03 +0200.