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.

I know creating a .bashrc and adding

PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/tools
PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools

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

1 Answer 1

up vote 1 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

 
discard

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.