O'Reilly logo

Special Edition Using® Solaris™ 9 by Tanuj Jain, Radhika Girisan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Shell Variables and the Environment

The shell has different types of variables: user-defined variables and environment (or predefined) variables. As the name suggests, users create the user-defined variables. Solaris uses environmental variables that determine the work environment of a user. These variables are assigned default values in the system-wide initialization files. If users want to customize their environments, then they can configure these variables according to their preferences. The environment variables have some variables, which are pre-defined, such as HOME, PATH, and so forth. Only the particular shell in which you are working recognizes the environment variables.

The following list explains some standard shell environment variables ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required