Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th December 2006, 02:48 PM
maxplanck735 Offline
Registered User
 
Join Date: Dec 2006
Posts: 13
How to search my FIlesystem by filename

How can I search my Filesystem by filename? For example, I want to search for all files on the filesystem whose filename contains the text "qt". I tried using the "Places->Search", but it only searches my Desktop.

I tried going into Search Preferences-> Indexing and adding all of the toplevel folders from the filesystem (it won't let me simply add the filesystem), but after doing this the search function still won't search these folders.

Thanks, any help is much appreciated.
Reply With Quote
  #2  
Old 20th December 2006, 02:50 PM
timdsmith Offline
Registered User
 
Join Date: Aug 2006
Location: The Colony, TX
Age: 41
Posts: 115
cd to the directory you want to start in....
Then
Code:
find . -name *qt*
Reply With Quote
  #3  
Old 20th December 2006, 02:53 PM
maxplanck735 Offline
Registered User
 
Join Date: Dec 2006
Posts: 13
Is there any way to do this from the GUI? (I'm talking about doing it from Gnome, without having to go to the command line.)

Thanks for the reply.

I ran "sudo updatedb" at the command line and now the "Search" feature turns up files located in the filesystem, however it seems to only search the text contained inside of the files, and NOT the filenames...
Reply With Quote
  #4  
Old 20th December 2006, 02:55 PM
saqer Offline
Registered User
 
Join Date: Oct 2006
Posts: 177
Menu->find Files/Folders
Reply With Quote
  #5  
Old 20th December 2006, 02:57 PM
maxplanck735 Offline
Registered User
 
Join Date: Dec 2006
Posts: 13
Where is "Menu" located?
Reply With Quote
  #6  
Old 20th December 2006, 03:01 PM
wneumann Offline
Registered User
 
Join Date: Dec 2004
Posts: 512
timdsmith's solution should have been "find . -name \*qt\*".

Running updatedb updates the locate database, after which "locate qt" finds files with qt in their name anywhere in your file system.

If you learn a little bit about the command line you'll find it hugely faster for most tasks.
Reply With Quote
  #7  
Old 20th December 2006, 03:03 PM
maxplanck735 Offline
Registered User
 
Join Date: Dec 2006
Posts: 13
i know the command line is faster, but it will then take me a lot more time to sort through all the files containing "qt" from the command line than it would take me from the GUI.

Can anyone tell me how to search for files with names containing a given text string from the GUI?

Thanks for all the replies so far.
Reply With Quote
  #8  
Old 20th December 2006, 03:03 PM
mwette Offline
Registered User
 
Join Date: Nov 2005
Location: Los Angeles area
Posts: 887
If you want to find files that contain "qt" then use something like
Code:
$ find . -type f -exec grep qt {} \; -print
or
$ find . -name '*.c' -exec grep qt {} \; -print
[EDIT: oops, I misread the request. I read the request as wanting to find files that contain the text "qt"]

Last edited by mwette; 20th December 2006 at 04:18 PM.
Reply With Quote
  #9  
Old 20th December 2006, 03:07 PM
maxplanck735 Offline
Registered User
 
Join Date: Dec 2006
Posts: 13
Thanks for that info.

Does anyone know how to search for files containing a given text string from the GUI? (I'm talking about from the graphical interface, not from the command line.)
Reply With Quote
  #10  
Old 20th December 2006, 03:12 PM
timdsmith Offline
Registered User
 
Join Date: Aug 2006
Location: The Colony, TX
Age: 41
Posts: 115
Quote:
Originally Posted by wneumann
timdsmith's solution should have been "find . -name \*qt\*".

Running updatedb updates the locate database, after which "locate qt" finds files with qt in their name anywhere in your file system.

If you learn a little bit about the command line you'll find it hugely faster for most tasks.
Hmmm...I dunno...the command I typed seems to work fairly well...
Code:
~$ find . -name *qt*
./.qt
./.qt/.qt_plugins_3.3rc.lock
./.qt/qtrc
./.qt/.qtrc.lock
./.qt/qt_plugins_3.3rc
Yields the exact same results as find . -name \*qt\*
Reply With Quote
  #11  
Old 20th December 2006, 03:21 PM
maxplanck735 Offline
Registered User
 
Join Date: Dec 2006
Posts: 13
Does anyone know how to search for files containing a given text string from the GUI? (I'm talking about from the graphical interface, not from the command line.)
Reply With Quote
  #12  
Old 20th December 2006, 03:22 PM
timdsmith Offline
Registered User
 
Join Date: Aug 2006
Location: The Colony, TX
Age: 41
Posts: 115
Quote:
Originally Posted by maxplanck735
Thanks for that info.

Does anyone know how to search for files containing a given text string from the GUI? (I'm talking about from the graphical interface, not from the command line.)
Places > Computer > Filesystem....Click Go >> Search. That will give you a search bar.
Reply With Quote
  #13  
Old 20th December 2006, 03:25 PM
maxplanck735 Offline
Registered User
 
Join Date: Dec 2006
Posts: 13
I went to Places > Computer > Filesystem, but I don't see "Go" anywhere... I tried looking in the menu bar of the window, and right clicking on "Filesystem," still no luck...
Reply With Quote
  #14  
Old 20th December 2006, 03:29 PM
timdsmith Offline
Registered User
 
Join Date: Aug 2006
Location: The Colony, TX
Age: 41
Posts: 115
Sorry...I changed my default behavior because it drives me nuts for it to open a new window for every folder I click on...By default, the search feature is under the "Places" menu when you get to filesystem. Then you have to change the location you want to search from.
Reply With Quote
  #15  
Old 20th December 2006, 04:21 PM
mwette Offline
Registered User
 
Join Date: Nov 2005
Location: Los Angeles area
Posts: 887
Quote:
Originally Posted by timdsmith
Hmmm...I dunno...the command I typed seems to work fairly well...
Code:
~$ find . -name *qt*
./.qt
./.qt/.qt_plugins_3.3rc.lock
./.qt/qtrc
./.qt/.qtrc.lock
./.qt/qt_plugins_3.3rc
Yields the exact same results as find . -name \*qt\*
There is a risk with not quoting wildcards like '*' and '?'. If your current directory
contains a file that matches *qt* then you will not get the behavior you expect.
Try to add a file "xqty" and then run your find command. I don't think it will work.
But if you escape or single-quote the expression ('*qt*' or \*qt\*) it will always work.
Reply With Quote
Reply

Tags
filename, filesystem, search

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum Search Filename - How to Pause a Search Streets Using Fedora 5 19th August 2007 02:31 PM
filename conversion soongwoo Using Fedora 0 15th February 2006 10:32 AM
filename editing bjh Using Fedora 4 8th February 2006 10:27 PM
Error 1: Filename must be either an absolute filename or blocklist Conquistador Installation, Upgrades and Live Media 3 4th January 2006 05:02 PM
lower:upper case filename on FAT filesystem ricobelo Using Fedora 0 11th November 2004 11:59 PM


Current GMT-time: 00:39 (Sunday, 20-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat