While I was installing Android SDK in my ubuntu. It was needed to set environment path. So I did a small research on it. It’s very easy. Just one line command in terminal. Suppose, I have a directory /myfile which is located in /home/yourusername/myfile that I want to set as environment variable PATH.
Open the terminal and navigate to the /home/yourusername/ directory
[sourcecode=””]sudo gedit .bashrc[/sourcecode]
then add this line
export PATH=$PATH:/home/yourusername/myfile
Save and close that. Done. Happy Digging.. 🙂