Find the answer to your Linux question:
Results 1 to 3 of 3
So im not sure on the process of using 'locate' i did a 'updatedb' and after it finished i tried doing a 'locate <filename>' and it still would not find ...
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Location
    Atlanta
    Posts
    2

    using Locate to find files.

    So im not sure on the process of using 'locate' i did a 'updatedb' and after it finished i tried doing a 'locate <filename>' and it still would not find the file i am looking for, is there other ways to use this command?

  2. #2
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191
    Here is an example of how I like to use locate:

    If there is a binary which is not linked to /usr/bin (or similar) I may not remember where it is or exactly what the binary is called. Lets take my sega emulator which I can remember is named generator:

    Code:
    slocate generator* | grep bin
    /usr/games/bin/generator-sdl
    /usr/kde/3.5/bin/lx200generic
    /usr/bin/fluxbox-generate_menu
    /sbin/generate-modprobe.conf

    /usr/games/bin/generator-sdl is the right one, yay
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    In case , you searching for file , try find command,

    Code:
    find / -name filename.txt
    This will search entire file system for the file named "filename.txt"
    HTH
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

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