logo

Art Of Eclipse

« Home » « About » « Github »


Add directory to system path in linux

Adding a directory to system path variable is easy in linux, just you have to append the directory to the system path
and you can do that by run the following command :

export PATH=/path/to/directory:$PATH

but this one is temporary for you current session, to make directory available in the system path, just edit you .bashrc file in you home folder, and add the above code at the end of the file:

$ vim ~/.bashrc

.......
.......
export PATH=/path/to/directory:$PATH