Ask the Expert

Environmental variables in Unix

What are environmental variables in Unix?

    Requires Free Membership to View

Environment variables in Unix and Linux are used to establish your current working session. Normally these variables are put in your .profile, though you can also put these into your current shell by exporting the variable. Global variables that you want all users to have should be put in /etc/profile. Many programs, such as Oracle, look for certain variables to be set -- and need certain directories in their path ($PATH). Without a properly configured .profile, your application will not start.

"env" is a command that you would use to see your current environment variables.

This was first published in August 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: