⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 whereis.1

📁 Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分区和管理硬盘驱动器
💻 1
字号:
.\" Copyright (c) 1980, 1990 The Regents of the University of California..\" All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"     This product includes software developed by the University of.\"     California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)whereis.1 from UCB 4.2.TH WHEREIS 1 "8 May 1994".SH NAMEwhereis \- locate the binary, source, and manual page files for a command.SH SYNOPSIS.B whereis[.B \-bmsu] [.B \-BMS.IR directory .\|.\|..B \-f]\fIfilename\fP\|\&.\|.\|..IX  "whereis command"  ""  "\fLwhereis\fP \(em find program".IX  find "program \(em \fLwhereis\fP".IX  "locate program"  ""   "locate program \(em \fLwhereis\fP".IX  command  locate  ""   "locate \(em \fLwhereis\fP".SH DESCRIPTION.B whereislocates source/binary and manuals sections for specifiedfiles.The supplied names are first stripped of leading pathname componentsand any (single) trailing extension of the form.BI . ext,for example,.BR .c .Prefixes of.B s.resulting from use of source code control are also dealt with..B whereisthen attempts to locate the desired program ina list of standard Linux places..SH OPTIONS.TP\fB\-bSearch only for binaries..TP.B \-mSearch only for manual sections..TP.B \-sSearch only for sources..TP.B \-uSearch for unusual entries.  A file is said to be unusual if it doesnot have one entry of each requested type.Thus.RB ` "whereis\ \ \-m\ \ \-u\ \ *" 'asks for those files in the currentdirectory which have no documentation..TP.B \-BChange or otherwise limit the places where.B whereissearches for binaries..TP.B \-MChange or otherwise limit the places where.B whereissearches formanual sections..TP.B \-SChange or otherwise limit the places where.B whereissearches for sources..TP.B \-fTerminate the last directory list and signals the start of file names,and.I mustbe used when any of the.BR \-B ,.BR \-M ,or.B \-Soptions are used..SH EXAMPLEFind all files in.B /usr/binwhich are not documentedin.B /usr/man/man1with source in.BR /usr/src :.IP.nf.ft Bexample% cd /usr/binexample% whereis \-u \-M /usr/man/man1 \-S /usr/src \-f *.fi.ft R.SH FILES.TP 20.B /{bin,sbin,etc}.TP.B /usr/{lib,bin,old,new,local,games,include,etc,src,man,sbin,.B X386,TeX,g++-include}.TP.B /usr/local/{X386,TeX,X11,include,lib,man,etc,bin,games,emacs}.SH "SEE ALSO".BR chdir (2V).SH BUGSSince.B whereisuses.BR chdir (2V)to run faster, pathnames given with the.BR \-M ,.BR \-S ,or.B \-Bmust be full; that is, they must begin with a.RB ` / '..PP.B whereishas a hard-coded path, so may not always find whatyou're looking for.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -