Visit Jeremy's Blog.
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 09-06-2003, 09:15 PM   #1
Registered: Jun 2003
Posts: 92

Rep: Reputation: 15
redhat linux search

hello, i wonder how to find a files in my hard-drive ? what command i going to use ??

Old 09-06-2003, 09:36 PM   #2
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
You have two options:

1. Use "locate". The way locate works is it scans your harddrive and builds a database listing your files.

Then you use "locate" to search that database.

The advantage is that you can search your whole harddrive instantly, the disadvantage is that your database is not auto updating.

to create and update the database, run (as root):

That will take a little while to update.

Then you can run:

locate file

2. Use the "Find" command. This is slow, but it searches your harddrive in realtime.

You can do something like this to search your whole harddrive:

find / -name "file"


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
Linux Search Tool superdude_876 Linux - Software 1 11-30-2005 08:03 PM
search default: search post title only slackie1000 LQ Suggestions & Feedback 4 03-10-2005 08:50 AM
Why does Redhat 9 search for drives that dont exist during bootup? glenn69 Linux - Newbie 9 08-12-2004 02:48 PM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 06:21 PM
file search utility for LAN in redhat Avijit Linux - Networking 5 09-12-2003 09:10 AM > Forums > Linux Forums > Linux - Software

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