Q

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 first published in August 2005

Dig deeper on Unix-to-Linux migration

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.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close