Setting and Viewing Environment Variables

You can use the SET command to view or set environment variables one at a time. You can also set environment variables by using the ifortvars.csh and ifortvars.sh files to set several at a time. The files are found in this directory: /opt/intel_fc_80/bin. See Running the Shell Script to Set Up the Environment Variables.

Within the C Shell, use the setenv command to set an environment variable:

setenv FORT8 /usr/users/smith/test.dat

To remove the association of an environment variable and its value within the C shell, use the unsetenv command.

unsetenv FORT8

Within the Bourne* shell (sh), the Korn shell (ksh), and the bash shell, use the export command and assignment command to set the environment variable:

export FORT8

FORT8=/usr/users/smith/test.dat

To remove the association of an environment variable and its value within the Bourne* shell, the Korn shell, or the bash shell, use the unset command:

unset FORT8

Configuration File Environment Variables

By default, the compiler picks up the default configuration file (ifort.cfg) from the same directory where the compiler executable resides. However, if you want the compiler to use another configuration file in a different location, you can use the IFORTCFG environment variable to assign the directory and filename for the other configuration file.

See Also

Compile-Time Environment Variables

Run-Time Environment Variables