OS Manuals

/usr/bin/whereis

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running whereis --help (exit 0). permalink

Usage:
 whereis [options] [-BMS <dir>... -f] <name>

Locate the binary, source, and manual-page files for a command.

Options:
 -b         search only for binaries
 -B <dirs>  define binaries lookup path
 -m         search only for manuals and infos
 -M <dirs>  define man and info lookup path
 -s         search only for sources
 -S <dirs>  define sources lookup path
 -f         terminate <dirs> argument list
 -u         search for unusual entries
 -g         interpret name as glob (pathnames pattern)
 -l         output effective lookup paths

 -h, --help     display this help
 -V, --version  display version

For more details see whereis(1).
Options (12)
OptionDescriptionSource
-bsearch only for binarieshelp + man
-B dirsLimit the places where whereis searches for binaries, by a whitespace-separated list of directories.help + man
-msearch only for manuals and infoshelp + man
-M dirsLimit the places where whereis searches for manuals and documentation in Info format, by a whitespace-separated list of directories.help + man
-ssearch only for sourceshelp + man
-S dirsLimit the places where whereis searches for sources, by a whitespace-separated list of directories.help + man
-fTerminates the directory list and signals the start of filenames.help + man
-uOnly show the command names that have unusual entries.help + man
-gInterpret the next names as a glob(7) patterns.help + man
-lOutput the list of effective lookup paths that whereis is using.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.