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.
Syntax
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
The Unix type
command is similar, but it identifies aliases.
Modern versions of Microsoft Windows feature a similar command: where
.[1]
gollark: But would compromise the smallness somewhat.
gollark: Yes, this is possible.
gollark: You can't just arbitrarily compact all programs ever to 16 bytes or something.
gollark: There are limits to that.
gollark: I did want an osmarkcalculator™, but electronics is hard.
See also
- List of Unix commands
- command (shell builtin)
- which (command)
- type (Unix)
- hash (Unix)
References
- 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.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.