I can't figure out what's wrong with my PC! I'm quite new to Ubuntu.

I need to add android tools to the PATH variable so I add the following lines to .bashrc file:

PATH=${PATH}:/home/user/Program\ Files/android-sdks/platform-tools:/home/user/Program\ Files/android-sdks/tools

after that I run source .bashrc and when I run echo $PATH the android tools shows up in the $PATH variable.

But when I logout android tools are gone from the $PATH variable and I have to run source .bashrc to load them again there. Any ideas why is it happening?

  • can you edit your question to include the output of the command: echo $SHELL ? Commented Dec 30, 2013 at 22:32

1 Answer 1


Add this to your ~/.profile (or ~/.bash_profile, whichever is present):

source ~/.bashrc
  • 1
    May I suggest [[ -r ~/.bashrc ]] && . ~/.bashrc instead ? Purely a personal preferences of course. :') Commented Dec 31, 2013 at 0:50
  • Yes, that's better. Commented Dec 31, 2013 at 14:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .