Discovering your current environment variables

A good first step in changing your environment is determining what environment variables you have. Using the steps in this section, you can discover which environment variables are currently set—including ones set in the configuration files as well as ones you've set for the current session (Code Listings 8.1 and 8.2).

As you're going through these steps, you might check out the sidebar called Environment variables you shouldn't touch in this section for a list of variables you should leave alone. Then, in the next section, check out Environment variables you can mess with to find ones you can change.

To find current environment variables in bash or ksh:

  • set
    At the shell prompt, type set. You'll ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.