Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-06-2007, 02:11 PM   #1
LQ Newbie
Registered: Aug 2007
Location: Philly
Distribution: Ubuntu 7.04
Posts: 6

Rep: Reputation: 0
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....
Old 08-06-2007, 02:15 PM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
Old 08-06-2007, 02:31 PM   #3
LQ Newbie
Registered: Aug 2007
Location: Philly
Distribution: Ubuntu 7.04
Posts: 6

Original Poster
Rep: Reputation: 0
Nice, that did the trick.
I'll add that to my newbie notes.

Thanks NYLEX

Last edited by FrankBlourtango; 08-06-2007 at 02:32 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you add to the path line or make a new path in /etc/profile? M$ISBS Linux - Newbie 2 12-13-2006 03:14 PM
Can't add directory to the PATH hpladd Linux - Newbie 5 07-25-2006 06:17 PM
add to path towel401 Linux - Newbie 3 07-23-2006 11:38 PM
Add path to @INC deus1 Linux - Software 0 07-27-2005 08:52 AM
How do I add something to my $PATH? iammeuno Linux - Software 1 12-18-2003 05:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration