Skip to content

Set system-wide environment variables in Ubuntu

Set system-wide environment variables in Ubuntu

Answer:

The recommended way now is to edit the file /etc/environment .

# vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

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

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. Set session-wide environment variables in Ubuntu
  2. Check current environment variables
  3. Print current environment variables
  4. Install Java Runtime environment under Ubuntu
  5. How to check which mime types are supported by your Debian/Ubuntu

Post a Comment

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