Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-28-2005, 02:59 PM   #1
LQ Newbie
Registered: Aug 2004
Location: pittsburgh!
Distribution: fc10
Posts: 28

Rep: Reputation: 15
adding to search path

i want to add a line to my search path
system: P4, distro: redhat, shell: bash

i am logging onto this computer - i want it to search into a folder everytime i log on

here is the situation:

i log on and use: PATH=~/wien2kn/:$PATH; export PATH
so it will search into the wien2kn folder and run the programs within no matter where i am

i want to be able to do this without typing in the command above everytime

i don't have a .bashrc.personal to change (that has already been suggested)

any thoughts?
Old 01-28-2005, 03:12 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Try ~/.bashrc or ~/.bash_profile.

You can also reduce that to one command

export PATH=$PATH:~/wien2kn/
Old 01-28-2005, 03:26 PM   #3
LQ Newbie
Registered: Aug 2004
Location: pittsburgh!
Distribution: fc10
Posts: 28

Original Poster
Rep: Reputation: 15
leonscape - you nailed it!
you are a true guru - the answer was troubling many people here

thanks much!


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
PHP search path jmanjohn61 Linux - Software 2 01-21-2009 01:47 PM
I need to add a directory to the search path johnjafa Linux - Software 1 01-06-2005 02:43 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM
BASH search path problem neilcpp Programming 4 02-07-2004 03:04 PM
How do I change python search path Giallo998 Linux - Software 1 10-22-2003 08:27 PM

All times are GMT -5. The time now is 02:44 AM.

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