Problem solve Get help with specific problems with your technologies, process and projects.

Environmental variables in Unix

What are environmental variables in Unix?
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 last published in August 2005

Dig Deeper on Linux servers

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.