Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I want to set an environmental variable that all users will have, where do I do this?

This is for users who login and also for certain processes that run under an account.

share|improve this question

marked as duplicate by Luis Alvarado Jun 5 '13 at 5:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

possible duplicated: – Lucio Jun 5 '13 at 2:34

You can set it in /etc/bash.bashrc

It will be available for all the users in the machine.

share|improve this answer
so it will require a reboot then right for processes that run under accounts? – Blankman Jun 5 '13 at 2:39
you dont have to reboot after setting it just run this command "source /etc/bash.bashrc" and your environment variable will be available for use – s.m Jun 5 '13 at 2:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.