Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-22-2005, 09:41 PM
|
#1
|
LQ Newbie
Registered: Mar 2003
Posts: 6
Rep:
|
Search for files in Fedora 3
How does one search for files in Fedora 3?
|
|
|
05-22-2005, 09:49 PM
|
#2
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
You can use find. To search the current directory for a file called foo.txt:
Code:
find . -name foo.txt -print
If your slocate database is up to date, you can also use slocate
To make sure slocate is up to date, you need to run updatedb as root:
Find will take longer, but will be more accurate than locate, since locate is using a database that may be several days old. If the file has recently been created, use find, or run updatedb (Takes a long time...) before using locate.
I hope this helps
--Ian
|
|
|
05-22-2005, 10:14 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
If you use gnome or kde, there is a built in search utility for files somewhere in the menu.
|
|
|
05-22-2005, 10:36 PM
|
#4
|
LQ Newbie
Registered: Mar 2003
Posts: 6
Original Poster
Rep:
|
That's the ticket. - thanks Ian.
|
|
|
05-22-2005, 10:51 PM
|
#5
|
LQ Newbie
Registered: Mar 2003
Posts: 6
Original Poster
Rep:
|
reddazz - I'm using Gnome, I looked through the menu for a search app but did not find one. It probably has an odd name that I don't recognize. I will try opening a bunch of apps just to find out what they are.
Ian, that updatedb command seems to be taking an extraordinarily long time 6-7 minutes or is it just not telling me that it is done?
|
|
|
05-22-2005, 11:42 PM
|
#6
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
If its not in the main menu, then its in the Actions menu on your top panel (if you didn't remove it).
|
|
|
05-23-2005, 06:57 AM
|
#7
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
updatedb does take a really long time. The more files you have, the longer it takes. On my machine it takes about 10 minutes to run.
Most people have it set up to run as a cron job. Check in /etc/cron.daily to see if it is there. Then it will run everynight and keep the locate database up to date.
--Ian
|
|
|
05-23-2005, 09:51 PM
|
#8
|
LQ Newbie
Registered: Mar 2003
Posts: 6
Original Poster
Rep:
|
Quote:
If its not in the main menu, then its in the Actions menu on your top panel (if you didn't remove it).
|
Oops, there it is on the Action Menu, cleverly hidden, in plain sight. 
|
|
|
All times are GMT -5. The time now is 01:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|