Set environmental variable PATH in Ubuntu

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.. 🙂

 

Eftakhairul Islam

Hi, I'm Eftakhairul Islam, a passionate Software Engineer, Hacker and Open Source Enthusiast. I enjoy writing about technical things, work in a couple of startup as a technical advisor and in my spare time, I contribute a lot of open source projects.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Read previous post:
Upload photo to WordPress from Flickr

One of my friends is having problem uploading photo to wordpress from flickr. Actually, he wanted to publish his photo...

Close