whereis
whereis is a Linux command in the Search & Find category, rated intermediate difficulty. Locates binary, source, and manual page files for a command. The syntax is whereis [options] command. Key options and parameters: command — command name. It returns paths to binary, sources, and man pages. A practical example: whereis ls # Output: ls: /usr/bin/ls /usr/share/man/man1/ls.1.gz A close relative is find, which searches for files and directories in a directory hierarchy. A close relative is locate, which finds files by name using a prebuilt database. Faster than find. A close relative is updatedb, which updates the database used by locate. Run as root periodically. 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, locate, updatedb, which, type, grep -r, ack, rg.