Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 172010
 

Set session-wide environment variables

Answer:

Create the file .pam_environment in your home directory.

# vi ~/.pam_environment
FOO=BAR

Add you key=value pairs into this file and save it.

This is the recommended way to store user's environment variables.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>