How do I display the shell and environment variables?
Author: Deron Eriksson
Description: This tutorial demonstrates how to display the shell variables and the environment variables.
Tutorial created using: CentOS release 4.6


The values of the shell variables and the environment variables can be displayed using the "set" command.

calling the set command

The end of the results of the set command on my system is shown below.

the set command displays the values of the shell and environment variables