LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   add to path (https://www.linuxquestions.org/questions/linux-newbie-8/add-to-path-575141/)

FrankBlourtango 08-06-2007 01:11 PM

add to path
 
I've been googling how to do this. I knew how to do this once long ago on redhat.
In UBUNTU 7.04 how can I add a path like say /home/jethro/c to my path so that I can run my C++ programs from there?

.bash_profile isn't on this distro I guess....

Nylex 08-06-2007 01:15 PM

You can do it in your .bashrc instead, with "export PATH=$PATH:/home/jethro/c". FWIW, it's ok to create the files if they don't exist.

FrankBlourtango 08-06-2007 01:31 PM

Nice, that did the trick.
I'll add that to my newbie notes.

Thanks NYLEX


All times are GMT -5. The time now is 12:10 AM.