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
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.[3]
It's also similar to the where utility in Multics.
See also
References
- ^ "Evolution of Unix section 1: User commands". dspinellis.github.io. 2023. Retrieved 10 October 2023.
- ^ 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
- ^ Bhardwaj, Pawan K. (2006). "Locating Files with the Where Command". How to Cheat at Windows System Administration Using Command Line Scripts. 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.
External links
- man page of whereis command
- Command whereis – 10 practical examples Archived 2020-10-27 at the Wayback Machine
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.