📄 whereis.1
字号:
.\" SCCSID: @(#)whereis.1 8.1 9/11/90.TH whereis 1.SH Namewhereis \- locate source, binary, and or manual for program.SH Syntax.B whereis[\fB\-sbm\fR] [\fB\-u\fR] [\fB\-SBM\fI dir... \fB\-f\fR\|] \fIname...\fR.SH Description.NXR "whereis command".NXR "program" "locating source".NXR "program" "locating binary".NXR "program" "locating manual".NXR "command" "locating online information"The.PN whereiscommandlocates source/binary and manuals sections for specified files.The supplied names are first stripped of leading pathname componentsand any (single) trailing extension of the form ``.ext'', forexample,``.c''.Prefixes of ``s.'' resulting from use of source code control are alsodealt with.The.PN whereiscommand then attempts to locate thedesired program in a list of standard places..SH Options.IP "\fB\-S dir\fR" 0.3iSearch for source files in specified directory. .IP "\fB\-B dir\fR" 0.3iSearch for binary files in given directory. .IP "\fB\-M dir\fR" 0.3iSearch for manual section files in given directory. .IP \fB\-b\fR 0.3iSearches only for binary files. .IP \fB\-f\fR 0.3iTerminates last directory list created from use of \fB\-S\fR,\fB\-B\fR or \fB\-M\fR flags and signalsthe start of file names. .IP \fB\-m\fR 0.3iSearches only for manual section files. .IP \fB\-s\fR 0.3iSearches only for source files. .IP \fB\-u\fR 0.3iSearches for files that do not have one of binary, source or manual section files.A file is said to be unusual if it does not have one entry ofeach requested type.Thus ``whereis \-m \-u *'' asks for those files in the currentdirectory which have no documentation..SH Examples.NXR "whereis command" "example"The following finds all the files in .PN /usr/ucbwhich are not documentedin .PN /usr/man/man1with source in.PN /usr/src/cmd:.EXcd /usr/ucbwhereis \-u \-M /usr/man/man1 \-S /usr/src/cmd \-f *.EE.SH RestrictionsSince the program uses.MS chdir 2to run faster, pathnames given with the.B \-M.B \-Sand.B \-Bmust be full. That is, they must begin with a ``/''..SH Files/usr/src/*.br/usr/{doc,man}/*.br/lib, /etc, /usr/{lib,bin,ucb,old,new,local}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -