Whereis
Command on Unix and Unix-like operating systems
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, dating back to 1979.
01Syntax
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 *02Analogs
The Unix type command is similar, but it identifies aliases.
Modern versions of Microsoft Windows feature a similar command: where.
It's also similar to the where utility in Multics.
Sources and credits
This article is adapted from the Wikipedia article “Whereis”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.