For faster navigation, this Iframe is preloading the Wikiwand page for whereis.

whereis

whereis is a command on Unix and Unix-like operating systems used to locate some special files of a command like the binary file, source and manual page files. The whereis utility was first included with 2BSD,[1] dating back to 1979.[2]

Syntax

[edit]

The whereis man page provides the following sample usage:

% # Find all files in /usr/bin which are not documented in /usr/man/man1 with source in /usr/src:
% cd /usr/bin
% whereis -u -M /usr/man/man1 -S /usr/src -f *

Analogs

[edit]

The Unix type command is similar, but it identifies aliases.

Modern versions of Microsoft Windows feature a similar command: where.[3]

It's also similar to the where utility in Multics.

See also

[edit]

References

[edit]
  1. ^ "Evolution of Unix section 1: User commands". dspinellis.github.io. 2023. Retrieved 10 October 2023.
  2. ^ Clement Cole (2022). "[TUHS] whereis command". tuhs.org. Retrieved 10 October 2023. I'm pretty sure we got it in early 79, so I clearly rewrote it at some point if the dates show later
  3. ^ Bhardwaj, Pawan K. (2006). "Locating Files with the Where Command". How to Cheat at Windows System Administration Using Command Line Scripts. How to Cheat. Rockland, Massachusetts: Syngress. p. 207. ISBN 978-0-08-050826-9. Retrieved 2016-07-05. […] the Where command […] is equivalent to using the Search option in the Start menu.
[edit]


{{bottomLinkPreText}} {{bottomLinkText}}
whereis
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?