LinuxQuestions.org
Help answer threads with 0 replies.
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 07-26-2007, 12:19 PM   #1
Shadow ZERO
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
File searching programs not returning expected results


I'm trying to understand how Linux works, and i figured i'd start by figuring out where certain files in the OS are contained. Problem is, i've used Beagle and Tracker(MetaTracker) and they don't seem to be searching much of my files.

For example, I'm using Linux Mint, which comes with several desktop backgrounds pre-installed, in .png or .jpg file formats. Neither Beagle or Tracker come up with anything searching for *.jpg or *.png. Plus, i have a storage drive using an NTFS partition that i'm able to browse and open files from just fine using the default file browser. The disk contains all types of data files: music, text, video, etc... but i come up with 0 results when using wildcards to search for specific file extentions(*.txt or whatever type of file it is).

In the Beagle config options there is the ability to index stuff manually... so i figure to be able to find the stuff i'm looking for, i'll just index the entire file system(everything under /). 5 hours later, Beagle still isn't finished indexing, and i still can't find basic files that come installed with the OS, or anything I have on my storage drive.
 
Old 07-26-2007, 12:48 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I would start by using the more basic "find" command in a terminal. This accepts wildcards and Regexes and is probably faster than the GUI searchers.

Example:
To find all .jpg files in /home and below:
find /home -name '*.jpg'

To find "letters" or "Letters":
find /home -name '[Ll]etters'

there are also options for searching by modification time and many other attributes
 
Old 07-26-2007, 12:53 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
1st Beagle sucks. In fedora it uses up so much background cpu time most users shut it off.

I do not know if it is available for all distros, but in RH based ones locate is pretty handy. You have to run a updatedb (not a typo) as root to add new files to the db but once the db is built it is really fast. I usually use |less for most searches becuase the results scroll off screen before I can read them.

Good Luck
Lazlow
 
Old 07-26-2007, 02:35 PM   #4
manlydan
Member
 
Registered: Nov 2005
Location: Lake Charles, LA
Distribution: Gentoo/LFS
Posts: 39

Rep: Reputation: 15
Quote:
Originally Posted by lazlow
1st Beagle sucks. In fedora it uses up so much background cpu time most users shut it off.

I do not know if it is available for all distros, but in RH based ones locate is pretty handy. You have to run a updatedb (not a typo) as root to add new files to the db but once the db is built it is really fast. I usually use |less for most searches becuase the results scroll off screen before I can read them.

Good Luck
Lazlow
This is my preferred method as well. Just make sure to run updatedb whenever you add/move/delete files. This comes in the slocate package if you don't already have it installed.
 
  


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
Tomshardware tests Linux ATI and nVdiai drivers. Results not what I expected for ATI. RHLinuxGUY Linux - News 3 10-30-2006 09:59 PM
getent not returning expected results anirbanz Linux - Software 0 01-10-2006 08:44 PM
Samba force user, group doesn't return expected results tisource Linux - Software 1 12-13-2005 12:07 AM
Is LQ Google Search not returning proper results? Bruce Hill LQ Suggestions & Feedback 2 09-15-2004 08:45 PM
Script Problem - Does not give expected results Jose Muņiz Linux - General 3 07-12-2003 10:10 PM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration