updatedb

Create or update the database used by locate. It is usually run daily by cron. More information: <https://manned.org/updatedb>.

Install

All systems
curl cmd.cat/updatedb.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/updatedb updatedb powered by Commando

Create or update the database used by locate. It is usually run daily by cron. More information: <https://manned.org/updatedb>.

  • Refresh database content:
    sudo updatedb
  • Display file names as soon as they are found:
    sudo updatedb --verbose

© tl;dr; authors and contributors