Skip to content

Set session-wide environment variables in Ubuntu

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.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. Set system-wide environment variables in Ubuntu
  2. Check current environment variables
  3. Print current environment variables
  4. Install Java Runtime environment under Ubuntu
  5. Add a User in Linux

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*