I installed kfind, but it doesn't seem to find anything even when I specify / as the search location. Also, tried Beagle, but that didn't work either. Thanks.
Announcement
Collapse
No announcement yet.
What's a good find program?
Collapse
This topic is closed.
X
X
-
Re: What's a good find program?
I'm not sure about GUI applications, but whenever I need to find something, I use the find command:
You must use 'sudo' if you're searching /root directories to give the application administrative privileges. 'find' is the application you're running, '/' tells it to look in all locations following '/', '-name' tells it you're looking for files that match the following name, and 'xorg.conf' tells find you want the locations of all files named 'xorg.conf'.Code:sudo find / -name xorg.conf
Likewise, if you just want to search your /home directory for all files that end with 'deb', you would change it to look like the following:
The asterisk ( * ) is used as a wildcard, telling find to return all files that contain 'deb' at their end (using *deb* would look for all files that have 'deb' somewhere in their names, whether they be 'bibletime.deb' or 'abcdebfg.txt'). You don't need 'sudo' here because you don't need root privileges to look through your /home directory.Code:find /home -name *deb
Asus G1S-X3:
Intel Core2 Duo T7500, Nvidia GeForce 8600M GT, 4Gb PC2-5300, 320Gb Hitachi 7k320, Linux (
)
- Top
- Bottom
-
Re: What's a good find program?
I use:
The -mount option:sudo find -mount -name target
Works like a charm.Don’t descend directories on other filesystems.Windows no longer obstruct my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Re: What's a good find program?
Hi
I use two commands to find something, works almost all the time, and with a little extra command, works everytime.
First: type 'sudo updatedb' in your console.
This will "update" the database and all it's entries, directories, files, etc. On an EXT3 file system I believe this happens automatically every once in a while.
Second: type 'locate "whatever you want to find"' without quotes of course - unless you need them for special characters. Whether it's files or directories this should find what you're looking for. I found that if you want to get more specific in your search, if you find you got too many results you can can combine the 'locate' command with 'grep' in which case you narrow your results. Such as:
'locate song | grep .mp3'
That will find a file or directory or song named 'song' and filter it to show only those that include '.mp3'
Good luck!
One last thing: these commands are still case sensitive of course, as with all unix. So be careful.
- Top
- Bottom
Comment
-
Re: What's a good find program?
The updatedb command is run automatically daily via /etc/cron.daily/mlocate script (*buntus switched from slocate to mlocate in hardy). If you're looking for files that might have changed during the last 24 hours, then it's safer to run 'sudo updatedb' manually first to make sure you get accurate results.
- Top
- Bottom
Comment
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.








Comment