Question

I have set

export PATH=$PATH:/home/user/android-sdk-linux/platform-tools

and execute the above line in command line and later if I type echo $PATH, I could see the path added. But after restarting the system I couldn't see it any more. But putting the system to sleep and then starting again, I could still see it. How to resolve the issue?

Was it helpful?

Solution

Adding it using export on command line would just set it for the current session.To set it permanently you need to add it to .bashrc or /etc/profile.

Your question is similar to: How to permanently export a variable in Linux?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top