Results 1 to 7 of 7

Thread: How do you search for files ?

  1. #1
    Join Date
    Apr 2008
    Beans
    164
    Distro
    Lubuntu

    [solved] How do you search for files ?

    Just a quick question. I usually search for files by build in Search function or Midnight Commander. Currently I have a problem. Looks like that:


    I want to find all files with extension .cmc

    One file is on my desktop and it's called File.cmc

    I search in whole File System with option *.cmc

    Nothing is being found

    What could be causing it ?
    Last edited by birkopf; July 4th, 2011 at 08:13 AM. Reason: solved problem
    Zorin

  2. #2
    Join Date
    Feb 2008
    Beans
    5,636

    Re: How do you search for files ?

    Code:
    find / -iname "*.cmc" 2>/dev/null
    Code:
    man find
    for more info

  3. #3
    Join Date
    Jul 2010
    Location
    London
    Beans
    713
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: How do you search for files ?

    Code:
    sudo updatedb
    sudo locate .cmc
    updatedb makes a list of all the files in your entire filesystem, it takes a couple of minutes, then locate searches that list, it's very quick and very thorough and will find any part of the file's path.

  4. #4
    Join Date
    Apr 2008
    Beans
    164
    Distro
    Lubuntu

    Post Re: How do you search for files ?

    Quote Originally Posted by jim_deadlock View Post
    Code:
    sudo updatedb
    sudo locate .cmc
    updatedb makes a list of all the files in your entire filesystem, it takes a couple of minutes, then locate searches that list, it's very quick and very thorough and will find any part of the file's path.
    Thanks. That worked

    - But how to explain that normal system search is not finding a file which is on my Desktop as well as Midnight Commander which never failed me before... ?

    In fact I had this problem on one Maverick... After install it works like a charm and after time it stops.
    Last edited by birkopf; July 2nd, 2011 at 09:29 PM.
    Zorin

  5. #5
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: How do you search for files ?

    btw, you don't need to use sudo with locate, just updatedb.

    Can't explain your problem with MC, I don't use it.
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  6. #6
    beew is offline I Ubuntu, Therefore, I Am
    Join Date
    Jun 2010
    Beans
    2,783

    Re: How do you search for files ?

    Quote Originally Posted by birkopf View Post
    Thanks. That worked

    - But how to explain that normal system search is not finding a file which is on my Desktop as well as Midnight Commander which never failed me before... ?

    In fact I had this problem on one Maverick... After install it works like a charm and after time it stops.
    This is crazy but to use "search for files" you need to go to gconf-editor, open apps > gnome-search-tool and disable (uncheck) quick search.

    Don't ask me why. I have been doing this since 10.04 and once "quick search" is disable it can find anything.

  7. #7
    Join Date
    Apr 2008
    Beans
    164
    Distro
    Lubuntu

    Smile Re: How do you search for files ?

    Quote Originally Posted by beew View Post
    This is crazy but to use "search for files" you need to go to gconf-editor, open apps > gnome-search-tool and disable (uncheck) quick search.

    Don't ask me why. I have been doing this since 10.04 and once "quick search" is disable it can find anything.
    It is exactly what I was thinking about! Just was too strange to name it and you did it. Great!

    I couldn't believe when I saw my config there! Path to look for was pointing wrong, a lot of folders excluded by default, and other issues.

    Just want to mention before closing the topic that in my case its
    disable_quick_search that needs to checked (ticked)
    Zorin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •