Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

1  
possible duplicated: askubuntu.com/q/24937/62483 –  Lucio Jun 5 '13 at 2:34

1 Answer 1

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.