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

How do I check as a root if a special path set? This command

sudo echo $ANDROID_SDK_HOME 

will show the path's value for a normal user and not for a root.

share|improve this question
Try sudo -i before checking path set – Mitch May 30 '13 at 6:11
@Mitch, exactly sudo -i echo $ANDROID_SDK_HOME ? – Alan Coromano May 30 '13 at 6:12
up vote 1 down vote accepted

Step 1:

Open a terminal if necessary with CTRL+ALT+T

Step 2:

logon as root

sudo -i

Step 3:

Check the path


Step 4:

If you opened a terminal at step one close it and you are no longer root; otherwise log out as root

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.