Forrest logo
back to context overview

locate

List of commands for locate:

  • locate:tldr:100df locate: Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily).
    $ locate ${pattern}
    try on your machine
    explain this command
  • locate:tldr:56b11 locate: Look for a file by its exact filename (a pattern containing no globbing characters is interpreted as `*pattern*`).
    $ locate */${filename}
    try on your machine
    explain this command
  • locate:tldr:81a3f locate: Recompute the database. You need to do it if you want to find recently added files.
    $ sudo updatedb
    try on your machine
    explain this command
  • locate:tldr:ad4d0 locate: Recompute the database. You need to do it if you want to find recently added files.
    $ sudo /usr/libexec/locate.updatedb
    try on your machine
    explain this command
back to context overview