Linux 101: How to add directories to your Linux $PATH

At some point, you’re going to want to run commands from non-standard directories. When that happens, you’ll want to add those directories to your $PATH. Jack Wallen shows you how.

Image: PegasuStudio/Shutterstock

Your Linux PATH is how you define the directories for which commands can be run globally. In other words, if you have an executable file in a directory that is configured to be in your PATH, you can run that executable from anywhere in the Linux file structure. This is what makes it possible to run commands in /usr/bin from your home directory (or anywhere, for that matter). 

SEE: 5 Linux server distributions you should be using (TechRepublic Premium)

Out of the box, the Linux PATH contains the usual entries, such as /usr/bin/, /usr/sbin/, /usr/local/bin, and so on. But what happens if you have a…

Keep reading the full content on the TechRepublic site.


Get Free Email Updates!

Signup now and receive an email once I publish new content.

I agree to have my personal information transfered to ConvertKit ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Spread the love

Leave a Comment