Learn How to Set Your $PATH Variables Permanently in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Marin Todorov

I am a bachelor in computer science and a Linux Foundation Certified System Administrator. Currently working as a Senior Technical support in the hosting industry. In my free time I like testing new software and inline skating.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. kevin says:

    what about the process that running in crontab, which files should I add “export PATH” ??

  2. Tomatreides says:

    Great post!

    You can also use /etc/environment to set PATH environment variable, but it does not support variable expansion.

  3. Amit says:

    Nice article .. If we need to use java on ubuntu then what are the parameters we should use? or on which file.
    Any help will be appreciated!!

  4. sahil says:

    thanks its a very informative ..

  5. David says:

    Great post and great blog!!!
    In my PATH I have some variables repeated, e.g., /usr/local/bin

    I’ve never had issues with that, so I think that it should not be so important to have duplicates, am I wrong?

    • Kyle says:

      The path is resolved with the first match. If you have identically named executables then the specific order of the paths are important and you might find unexpected behavior when there are duplicate or out of sequence entries.

  6. Rodolfo says:

    you should include fishshell

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?