linux里面的命令查了帮助以后却不会用,谁能举个例子给小弟分析一下啊,谢谢啦

如题所述

[test@localhost ~]$ whereis -h

Usage:
whereis [options] file

Options:
-f <file> define search scope
-b search only binaries
-B <dirs> define binaries lookup path
-m search only manual paths
-M <dirs> define man lookup path
-s search only sources path
-S <dirs> define sources lookup path
-u search from unusual enties
-V output version information and exit
-h display this help and exit

See how to use file and dirs arguments from whereis(1) manual.

--------------------------------------------------------------------------------------
使用:
whereis 选项 命令
选项:
-f 文件名 定义搜索范围
-b 只搜索二进制文件
-B 文件夹 定义搜索目录范围
-m 只搜索手册
.....
后面就不翻译了
下面使用方法:
例如我要搜索下sudu的执行文件可以使用:
whereis -b sudo
我要搜索sudo的手册在哪
whereis -m sudo追问

我还想麻烦一下,比如我在终端下输入了man sed命令,显示的其中一条是:-n, --quiet, --silent
suppress automatic printing of pattern space,那么 --quiet, --silent这两个怎么用啊

追答

表示那三个选项都是一个意思

温馨提示:答案为网友推荐,仅供参考
相似回答