Bash Locate (flocate)
A fast locate-like tool that you can carry with you in your dotfiles, that only uses basic binaries available on most systems.
Motivation
Sometimes you are on a system where you don't have root access to install mlocate or similar tools. flocate is a simple bash script that creates its own index of files and allows you to search them quickly.
How it works
It uses find to generate a list of all files and stores them in a compressed file. When you search, it decompresses and greps through the list.
# Create index
find / -xdev > ~/.flocate.db 2>/dev/null
# Search
grep -i "$1" ~/.flocate.db