LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-24-2008, 03:24 PM   #1
dave247
Member
 
Registered: May 2004
Posts: 206

Rep: Reputation: 30
where is the find command located?


simple question: where is the find command located? I thought it was in the /bin directory with the other commands, but I do not see it.

My current find file is possibly corrupted so I want to replace it with a backed up one which I can trust.
 
Old 11-24-2008, 03:26 PM   #2
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Try the command which find. That should tell you where the command is (its full path).
 
Old 11-24-2008, 03:27 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
[xtd8865@localhost ~]$ which find
/usr/bin/find
Quoted from man which:
Quote:
which - shows the full path of (shell) commands.
 
Old 11-24-2008, 03:38 PM   #4
dave247
Member
 
Registered: May 2004
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Telemachos View Post
Try the command which find. That should tell you where the command is (its full path).
yeah i tried that and it told me but i was sure if that was what I wanted or not.

How come some commands are stored in the /bin folder when others are in the /usr/bin folder?

Last edited by dave247; 11-24-2008 at 03:51 PM.
 
Old 11-24-2008, 04:06 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,334

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Quote:
Originally Posted by dave247 View Post
How come some commands are stored in the /bin folder when others are in the /usr/bin folder?
It is pretty much up to the person who puts the distribution together.

---------------------
Steve Stites
 
Old 11-24-2008, 05:02 PM   #6
Goce
LQ Newbie
 
Registered: Nov 2008
Location: Eugene, OR
Distribution: Ubuntu Linux 8.04
Posts: 7

Rep: Reputation: 0
Talking FIND command at it's best!

Start a shell/terminal program or use CTRL-ALT-F1 and run the following;

if you are looking in your user folders;
find /home/user_name -name file_syntax*
Replace user_name with your login name and file_syntax with your search criteria.

If you need to find a system file or app;
sudo find / -name file_syntax*
You are using the find command as user root starting from / (root file system and all sub-folders) searching for the syntax of a app name ending with anything extra.

IE;
sudo find / -name ndiswrapper*
I'm looking for any file on the hard drive which startes with ndiswrapper and searching sub-folders too.

Hope this helps you out!



PS: If you did CTRL-ALT-F1, then you use CTRL-ALT-F7 to return to the graphical user interface. If you use a shell/terminal, you are allowed to copy from it as you are not in CTRL-ALT-F1.
 
Old 11-24-2008, 10:10 PM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
And that has what to do with the OP?
 
Old 11-25-2008, 04:15 PM   #8
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
another way to find out where a (executable) file is located is to use the 'whereis' command. This will also tell you the location of your file. but most of the time I think find should be in /bin

/usr/bin is commonly used by programs that aren't really needed to work properly with your shell

/sbin and /bin are the locations with the most common commands (like find, ls, grep, bash etc...)
 
  


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
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 9 06-30-2016 05:30 PM
can't find my find command! how to replace? dave247 Debian 4 11-19-2008 10:51 AM
Processing file located using the FIND command PirateJack Linux - Newbie 2 04-04-2006 11:24 AM
where is command "cd" located? or is it a command/ system call? feetyouwell Linux - Software 5 10-01-2004 08:01 PM
find command... ultima Linux - Newbie 2 05-20-2004 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:57 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