How To Add Directory To Path On Ubuntu 14.04

For the past several years, I have been running a Mac as my primary development machine. Recently, I’ve been doing some development on a Ubuntu virtual machine. As per usual with my bouncing back and forth between things, I forgot how to add a directory to my PATH in a Linux Distro. On my Mac, I’m used to having a .bash_login, but I didn’t have that option in this case.

Here’s what I did to add a directory to my PATH in Ubuntu 14.04

sudo vi /etc/environment

Just add your directory to the end of the PATH value, restart your machine and you’re good to go!

Don Marges

Don Marges

Fullstack Web Developer

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin