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

Just as the title indicates my PATH variable resets after every reboot. I read that I have to edit my bashrc file's PATH variable, but I don't have anything there that suggests anything related to the PATH variable.

share|improve this question
Are you manually setting it to anything each time? What does it reset to? – Chris Wayne Jul 16 '12 at 14:25
It just resets to its default PATH. – Shelby. S Jul 16 '12 at 14:38
up vote 3 down vote accepted

if you want to update the PATH only for your user, just edit your local bashrc

gedit ~/.bashrc

if you want to update the global PATH

gksudo gedit /etc/bash.bashrc
share|improve this answer
Oh thank you. Got it, I think. – Shelby. S Jul 16 '12 at 14:38

If it isn't in your ~/.bashrc add it on a new line.

export PATH=/path/to/whatever:$PATH
share|improve this answer

Environment variable settings that should affect just a particular user (rather than the system as a whole) should be set into:

~/.pam_environment # This file is specifically meant for setting a user's environment. 

It is not a script file, but rather consists of assignment expressions, one per line.


Note: Using .pam_environment requires a re-login in order to initialize the variables. Restarting just the terminal is not sufficient to be able to use the variables.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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