LinuxQuestions.org
Review your favorite Linux distribution.
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 11-13-2004, 10:21 PM   #1
albean
Member
 
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 mod_mono.so -> mod_mono.so.0.0.0
-rwxr-xr-x 1 root root 22720 Nov 2 22:38 mod_mono.so.0.0.0
[root@localhost modules]#

Why didn't the "Search for Files ..." program work?
 
Old 11-14-2004, 08:49 AM   #2
drj000
Member
 
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, 02:35 PM   #3
mikek
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
find

Go to a terminal window and do

find / -name filename

which is equivalent to

updatedb; locate filename
 
  


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
how do i search files for a particular string? darkpark Linux - Newbie 4 07-05-2005 05:46 PM
To search for files of a particular size mufy Linux - General 1 12-09-2004 12:44 AM
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


All times are GMT -5. The time now is 07:24 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