Results 1 to 6 of 6

Thread: How do I add a directory to $PATH permanently?

  1. #1
    Join Date
    Jun 2007
    Location
    Minneapolis, MN
    Beans
    749
    Distro
    Ubuntu 12.04 Precise Pangolin

    How do I add a directory to $PATH permanently?

    I am using:
    Code:
    export PATH=$PATH:$HOME/arm-2008q3/bin
    I need to run the command every time I start the terminal.

    Is there a way to add the directory to the $PATH permanently?
    Last edited by JRV; July 9th, 2013 at 05:35 PM.
    Moderation in all things; including moderation.

  2. #2
    Join Date
    Jun 2007
    Location
    Minneapolis, MN
    Beans
    749
    Distro
    Ubuntu 12.04 Precise Pangolin

    How do I add the directory to the $PATH permanently?

    I am using:
    Code:
    export PATH=$PATH:$HOME/arm-2008q3/bin
    I need to run the command every time I start the terminal.

    Is there a way to add the directory to the $PATH permanently?
    Moderation in all things; including moderation.

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How do I add the directory to the $PATH permanently?

    Hi JRV.

    You can add that line to your ~/.bashrc for personal use, or add the path to the list in /etc/environment to set it system wide.

    Hope it helps. Let us know how it goes.
    Regards.

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I add a directory to $PATH permanently?

    You could append it to ~/.bashrc or ~/.profile but perhaps that method is deprecated :

    https://help.ubuntu.com/community/En...ment_variables

  5. #5
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I add a directory to $PATH permanently?

    Merged duplicate threads.

  6. #6
    Join Date
    Jun 2007
    Location
    Minneapolis, MN
    Beans
    749
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I add a directory to $PATH permanently?

    Thank You Lars Noodén, I added it to .profile.

    cariboo907 - Sorry about the double post, there was a long delay and I didn't think it went through.

    Thread marked solved.
    Last edited by JRV; July 10th, 2013 at 06:14 AM. Reason: Spelling
    Moderation in all things; including moderation.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •