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

I know creating a .bashrc and adding


will add those directories to my path. How do I do the same so the programs in those directories will be available with sudo? I tried the same as su in /root, but that didn't work.

share|improve this question
up vote 3 down vote accepted

IMO easiest way is to add those lines to /root/.bashrc

Alternately, you can add /home/asco/adt-bundle-linux-x86_64/sdk/tools and /home/asco/adt-bundle-linux-x86_64/sdk/platform-tools to /etc/environment

Last, you could, as root, move the sdk directory to a central location on root's path, such as /usr/local/lib.

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.