locate

Find filenames quickly. More information: <https://manned.org/locate>.

Install

All systems
curl cmd.cat/locate.sh
Debian Debian
apt-get install mlocate
Ubuntu
apt-get install mlocate
Alpine
apk add mlocate
Arch Arch Linux
pacman -S mlocate
image/svg+xml Kali Linux
apt-get install mlocate
CentOS
yum install mlocate
Fedora
dnf install mlocate
Windows (WSL2)
sudo apt-get update sudo apt-get install mlocate
Raspbian
apt-get install mlocate
Docker
docker run cmd.cat/locate locate powered by Commando

Find filenames quickly. More information: <https://manned.org/locate>.

  • Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily):
    locate pattern
  • Look for a file by its exact filename (a pattern containing no globbing characters is interpreted as `*pattern*`):
    locate '*/filename'
  • Recompute the database. You need to do it if you want to find recently added files:
    sudo updatedb

© tl;dr; authors and contributors