Results 1 to 5 of 5

Thread: PATH enviromental variable problems

  1. #1
    Join Date
    Dec 2009
    Location
    Slovenia
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    PATH enviromental variable problems

    Hello i have been trying to execute custom scripts in CLI and it works fine for some time and then it just stops. I added a path where scripts are by typing in a command:
    Code:
    export PATH=/home/ziga/codesourcery/bin:"${PATH}"
    I allso used same command in /etc/bash.bashrc. After a while my /etc/bash.bashrc is empty!?

    What is going on? Did i mess anything?
    student 4. grade, Fi/Te, PeF-Ljubljana

  2. #2
    Join Date
    Apr 2009
    Location
    Midwest, U.S.A.
    Beans
    1,209
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: PATH enviromental variable problems

    You should put the new $PATH in your ~/.bashrc
    ~/.bashrc is the last file invoked by the interactive shell.
    Laptop: Dell Inspiron 8200 - Fedora 13 - Goddard
    Desktop: Self-Built - [Ku, Lu, Xu, U]buntu - Lucid 10.04.3 (LTS)
    Linux User: 498249 / Ubuntu User: 29241

  3. #3
    Join Date
    Dec 2009
    Location
    Slovenia
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: PATH enviromental variable problems

    Quote Originally Posted by AlphaLexman View Post
    You should put the new $PATH in your ~/.bashrc
    ~/.bashrc is the last file invoked by the interactive shell.
    Can you just tell me how to do this for this example path "/home/ziga/codesourcery/bin"... just soo that i ll do it right.

    TY
    student 4. grade, Fi/Te, PeF-Ljubljana

  4. #4
    Join Date
    Apr 2009
    Location
    Midwest, U.S.A.
    Beans
    1,209
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: PATH enviromental variable problems

    Just copy and paste into a terminal:
    Code:
    echo "PATH=${PATH}:/home/ziga/codesourcery/bin/" >> ~/.bashrc
    Then,
    Code:
    source ~/.bashrc
    will re-read the config file.
    Laptop: Dell Inspiron 8200 - Fedora 13 - Goddard
    Desktop: Self-Built - [Ku, Lu, Xu, U]buntu - Lucid 10.04.3 (LTS)
    Linux User: 498249 / Ubuntu User: 29241

  5. #5
    Join Date
    Dec 2009
    Location
    Slovenia
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: PATH enviromental variable problems

    Ty guys i am closing this thread now [SOLVED]
    student 4. grade, Fi/Te, PeF-Ljubljana

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
  •