LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-22-2005, 09:41 PM   #1
wjal
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Rep: Reputation: 0
Search for files in Fedora 3


How does one search for files in Fedora 3?
 
Old 05-22-2005, 09:49 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
Code:
slocate foo.txt
To make sure slocate is up to date, you need to run updatedb as root:
Code:
updatedb
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
 
Old 05-22-2005, 10:14 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you use gnome or kde, there is a built in search utility for files somewhere in the menu.
 
Old 05-22-2005, 10:36 PM   #4
wjal
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Original Poster
Rep: Reputation: 0
That's the ticket. - thanks Ian.
 
Old 05-22-2005, 10:51 PM   #5
wjal
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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?
 
Old 05-22-2005, 11:42 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If its not in the main menu, then its in the Actions menu on your top panel (if you didn't remove it).
 
Old 05-23-2005, 06:57 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
Old 05-23-2005, 09:51 PM   #8
wjal
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
  


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
can you specify which files to grep search? sneakyimp Linux - Software 4 10-12-2005 08:28 PM
search/replace in many files allelopath Linux - General 1 08-02-2005 09:21 PM
Search for Files vs. ls albean Linux - Newbie 2 11-14-2004 02:35 PM
Search in configuration files fiomba Linux - Software 9 10-31-2004 04:45 PM
Search all text files? nextekcarl Linux - General 4 10-20-2004 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 PM.

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