Forrest logo
tool overview
On this page you find all important commands for the CLI tool whereis. If the command you are looking for is missing please ask our AI.

whereis

The "whereis" command line tool is used in Unix-based operating systems. It is primarily used to locate the binary, source, and manual page files for a specified command. The tool searches for the specified command in the directories specified in the user's PATH environment variable. It provides the file paths of the binary executable, source code, and the location of the man page for a given command. The "whereis" command is useful in situations where you want to know which directories contain the files associated with a particular command. By default, the "whereis" command does not search all directories; it only looks in the standard binary and source directories. The command also has several flags, such as "-b" to only search for the binary file, and "-m" to only search for the man page. "whereis" does not perform a full-text search within files; it simply provides the file paths of the relevant files. This tool is often used by system administrators and developers to quickly locate the relevant files for a command and get detailed information about its usage. The "whereis" command is a handy utility that saves time by directly providing the essential files for a command instead of manually searching through multiple directories.

List of commands for whereis:

  • whereis:tldr:0539a whereis: Locate binaries that have unusual manual entries (binaries that have more or less than one manual installed).
    $ whereis -u -m *
    try on your machine
    explain this command
  • whereis:tldr:921e3 whereis: Locate binary and man pages for ls.
    $ whereis -bm ${ls}
    try on your machine
    explain this command
  • whereis:tldr:979c2 whereis: Locate binary, source and man pages for ssh.
    $ whereis ${ssh}
    try on your machine
    explain this command
  • whereis:tldr:b7e55 whereis: Locate binaries for gcc in `/usr/bin/` only.
    $ whereis -b -B ${-usr-bin-} -f ${gcc}
    try on your machine
    explain this command
  • whereis:tldr:c747d whereis: Locate unusual binaries (those that have more or less than one binary on the system).
    $ whereis -u *
    try on your machine
    explain this command
  • whereis:tldr:f09f9 whereis: Locate source of gcc and man pages for Git.
    $ whereis -s ${gcc} -m ${git}
    try on your machine
    explain this command
tool overview