LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-02-2003, 03:51 AM   #1
praveen_2003
Member
 
Registered: Apr 2003
Location: india
Posts: 144

Rep: Reputation: 15
search in RH8


iam using RH8 with kernel 2.4.18-14.i use KDE.but whenver i try to search for some files it takes a very long time nearly 20-30 minutes.is thee any problem with my installation.or any corrupted files juggling around there.?
*******thank you********
 
Old 05-02-2003, 06:29 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
What software are you using to do searches? Something in the GUI, or something more basic like find or locate?

'locate' is my favorite for finding files with a certain name (or part of a name). If you have it installed, open up a terminal and run 'updatedb' as root. Then you can use 'locate':

locate xyz

which will find all files or directories with 'xyz' in the name somewhere. Pretty handy, and very fast! (as long as updatedb was run recently)
 
Old 05-02-2003, 07:53 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
maybe you have a slow computer, a lot of files, and
no udma enabled. search on this site for hdparm
 
Old 05-02-2003, 01:32 PM   #4
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
If you have some idea as to where the file is try using the find command. If you have it search the whole file system it will take forever.

For example, if you looking for something KDE related then have it search /usr

find /usr -name "file_name" 2>/dev/null

2>/dev/null sends the errors (files that don't match) to null so they don't appear on the screen.
 
Old 05-02-2003, 02:21 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Just for elucidation: find searches all your files for a match, hence, depending on the size of your harddrive(s) it can take quite a while.

locate uses a database to search for files, which is updated with the updatedb command. The results are pretty much instantaneous, but may be out of date depending on when the database was last updated.

For this reason, it is wise to run updatedb as a daily cron task to be sure you are up to date....
 
Old 05-02-2003, 02:31 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you can make your own list of files and search
that quickly too.

find . -type f -print > /listoffiles.txt

then grep the list for quick searches.

grep mp3 /listoffiles.txt
 
  


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
search default: search post title only slackie1000 LQ Suggestions & Feedback 4 03-10-2005 07:50 AM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 05:21 PM
i Got 1 Harddisk with Win XP & RH8 Dual Boot,will WinXP perform slower coz i got RH8? kublador Linux - General 4 08-27-2003 11:32 PM
i just installed a stock RH8 and heard that reiserfs is cool. can i use it in my RH8? kublador Linux - Software 16 08-06-2003 07:03 AM
RH8 + vt82c686b southbridge.. do i still need a via 4in1 driver in RH8? kublador Linux - Software 0 06-12-2003 01:02 PM

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

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