Environment variables
Several environment variables are automatically defined for you to help you manage your storage. Use environment variables instead of actual paths whenever possible to avoid problems if the specific paths to any of these change.
Some of the environment variables you should have are:
| Name | Description |
|---|---|
| HOME | /home/myusername |
| PWD | path to your current directory |
| RCAC_SCRATCH | /scratch/gautschi/myusername |
By convention, environment variable names are all uppercase. You may use them on the command line or in any scripts in place of and in combination with hard-coded values:
To find the value of any environment variable:
To list the values of all environment variables:
You may create or overwrite an environment variable. To pass (export) the value of a variable in bash:
To assign a value to an environment variable in either tcsh or csh: