locate
locate is a Linux command in the Search & Find category, rated intermediate difficulty. Finds files by name using a prebuilt database. Faster than find. The syntax is locate [options] pattern. Key options and parameters: pattern — filename pattern. It returns list of matching file paths. A practical example: locate myfile.txt locate -i "*.pdf" # Case-insensitive locate -c "*.conf" # Count matches locate -r "regex" # Use regex pattern A close relative is find, which searches for files and directories in a directory hierarchy. A close relative is updatedb, which updates the database used by locate. Run as root periodically. A close relative is which, which shows the full path of a command executable. More about this category: Linux search commands — find, locate, which, whereis, and more. Find files and commands on the system. Related Search & Find commands: find, updatedb, which, whereis, type, grep -r, ack, rg.