LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-21-2008, 05:40 AM   #1
kamalkirat1
LQ Newbie
 
Registered: Nov 2008
Posts: 15

Rep: Reputation: 0
how can i find linux commands?


how can i find commands where it stored?
 
Old 11-21-2008, 05:42 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
Quote:
Originally Posted by kamalkirat1 View Post
how can i find commands where it stored?
Programs are usually stored at one of these paths:

Code:
/bin/
/sbin/
/usr/bin/
/usr/sbin/
/usr/local/bin/
If that's what you mean.
 
Old 11-21-2008, 11:02 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175Reputation: 3175
First, in a command line, do: echo $PATH.

"$PATH" is a variable that specifies where Linux will look to find most commands. (The which command will tell you "which" program would be run in response to any command.)

Some commands are built-in to the shell: see info bash. ("The shell" is the program that gives you that command prompt in the first place...) For these, the shell does not invoke an external program.

Finally, for security reasons "$PATH" normally does not include the current-directory. You can always run a command by giving its filename explicitly.

The "$PATH" setting for you is particular to you and you can therefore change it any time during your session.
 
Old 11-21-2008, 11:48 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
kamal;

Please stop posting these simplistic questions which you could easily find in a Google search. This is going to very quickly erode your credibility here.
 
Old 11-22-2008, 11:19 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,703
Blog Entries: 1

Rep: Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797
which <command>

But typically they're in some standard places. Not that they do you any good if you don't know how to use them.

/bin
/sbin
/usr/bin
/usr/sbin
....

man man

cd /usr/share/doc/
cat * | more

find / -iname '*BOFH*'

tldp.org
linuxdoc.com

freshmeat.net
sourceforge.net
 
  


Reply


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
Where to find commands? spotterke Linux - Newbie 4 09-11-2008 04:34 PM
find commands shawniecas Linux - Newbie 4 06-14-2007 11:25 AM
find and delte commands gothicbob Linux - Newbie 6 03-14-2007 01:43 PM

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

All times are GMT -5. The time now is 09:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration