LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-24-2007, 10:08 AM   #1
combilli
Member
 
Registered: Oct 2006
Posts: 75

Rep: Reputation: 15
Default Path


Hi..
I got a directory contain some programs, could someone tell me how can I set that firectory as a path of default programs..
Which then I can use the "TAB" buttom to search the command include that directory
 
Old 01-24-2007, 10:17 AM   #2
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
Code:
export PATH="/yourpath:$PATH"
Add this to your .bashrc or to /etc/profile
 
Old 01-24-2007, 10:48 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Paths should ideally be added to the ~/.bash_profile or /etc/profile and not the ~/.bashrc.
 
Old 01-24-2007, 11:15 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I agree with reddazz

Open consecutive subshells and you will see why
bash$ echo $PATH
/yourpath:/usr/bin....
bash$ bash
bash$ echo $PATH
/yourpath:/yourpath:/usr/bin....
 
  


Reply



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
How to change the default PATH value marc1978 Linux - General 6 02-28-2006 06:09 AM
How to edit default PATH? davidas Linux - Newbie 2 03-20-2004 05:34 AM
Default PATH Itsu Linux - Software 5 01-30-2004 07:27 AM
Default path log Linux - Newbie 1 01-13-2003 09:13 AM
default path for licq glock19 Linux - General 1 01-03-2002 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:07 AM.

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