Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-13-2004, 11:21 PM   #1
Registered: Sep 2002
Distribution: fc2
Posts: 113

Rep: Reputation: 15
Search for Files vs. ls

In gnome 2.6 on fc2 I clicked red hat > Search for files ... .
In "Name Contains" I typed: mod_mono*
In "Look in folder" I typed: /usr/lib/httpd/modules/
When I did the search it said "No Files Found"

Howerver, in a terminal window I did this:
[root@localhost modules]# cd /usr/lib/httpd/modules/
[root@localhost modules]# ls -l mod_mono*
lrwxrwxrwx 1 root root 17 Nov 13 21:36 ->
-rwxr-xr-x 1 root root 22720 Nov 2 22:38
[root@localhost modules]#

Why didn't the "Search for Files ..." program work?
Old 11-14-2004, 09:49 AM   #2
Registered: Sep 2004
Location: Hagerstown, MD
Distribution: Ubuntu Natty Narwahl
Posts: 258

Rep: Reputation: 31
Gnome's search program using the locate function. To use the locate function, you must have previously run updatedb as root. If you haven't, it won't return any results. If you have run updatedb, I've no idea.
Old 11-14-2004, 03:35 PM   #3
LQ Newbie
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0

Go to a terminal window and do

find / -name filename

which is equivalent to

updatedb; locate filename


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 09:28 PM
how do i search files for a particular string? darkpark Linux - Newbie 4 07-05-2005 06:46 PM
To search for files of a particular size mufy Linux - General 1 12-09-2004 01:44 AM
Search in configuration files fiomba Linux - Software 9 10-31-2004 05:45 PM
Search all text files? nextekcarl Linux - General 4 10-20-2004 01:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration