whereis

whereisUnix类Unix操作系统中用于定位某些特殊文档(如可执行进程源代码手册页,可附加参数以限制范围)的一条命令。whereis会将提供的文档名参数前端的路径与后端的扩展名部分截去,并找出文档名与之相匹配的特殊文档,如下示例。

$ whereis /test/sed.test
sed: /bin/sed /usr/share/man/man1/sed.1p.gz /usr/share/man/man1/sed.1.gz

外部链接

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.