Find the answer to your Linux question:
Results 1 to 4 of 4
I searched for this, but couldn't find anything about it. What is the command to 'rescan', or 'refresh' the 'locate' command, so it looks for recently added files, and doens't ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    MtM
    MtM is offline
    Just Joined!
    Join Date
    Aug 2004
    Posts
    9

    refresh 'locate' database


    I searched for this, but couldn't find anything about it.

    What is the command to 'rescan', or 'refresh' the 'locate' command, so it looks for recently added files, and doens't use the old cache?

  2. #2
    Just Joined!
    Join Date
    Mar 2004
    Posts
    21
    Im not sure if this is what you want, but...


    'updatedb&' updates the slocate database in the background

    this is for slocate, though.. so im not sure how much it will help.

  3. #3
    MtM
    MtM is offline
    Just Joined!
    Join Date
    Aug 2004
    Posts
    9
    I am actually using freebsd, but I figured it out

    /usr/libexec/locate.updatedb

    updated it.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jul 2004
    Location
    UK
    Posts
    77
    rathergoodman was correct the command to use is:

    /usr/bin/updatedb

    you have to be root to do it.

    Armage

Posting Permissions

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