whereis [选项] [文件]

(1).选项

-b 只搜索二进制文件
-B <目录> 只在路径下查找二进制文件
-m 只搜索man手册
-M <目录> 只在路径下查找man手册
-s 只搜索源码文件
-S <目录> 只在指定路径下查找源码文件
-f 终止目录列表和文件开头信号(其实就是结尾符号)。使用-B,-M,-S选项时,必须使用。
-u 仅显示具有异常项的命令名。
-l 输出有效查找路径

(2).实例

[xf@xuexi ~]$ whereis cd
cd: /usr/bin/cd /usr/share/man/man1/cd.1.gz /usr/share/man/man1p/cd.1p.gz
[xf@xuexi ~]$ whereis -b cd
cd: /usr/bin/cd
[xf@xuexi ~]$ whereis -B /usr/ -f cd
cd: /usr/share/man/man1/cd.1.gz /usr/share/man/man1p/cd.1p.gz
[xf@xuexi ~]$ whereis -s cd
cd:[xf@xuexi ~]$ whereis -S /usr/ -f cd
cd: /usr/bin/cd /usr/share/man/man1/cd.1.gz /usr/share/man/man1p/cd.1p.gz
[xf@xuexi ~]$ whereis -m cd
cd: /usr/share/man/man1/cd.1.gz /usr/share/man/man1p/cd.1p.gz
[xf@xuexi ~]$ whereis -M /usr/ -f cd
cd: /usr/bin/cd

为啥大写和小写输出不一样啊???

相关文章:

  • 2022-02-07
  • 2022-01-07
  • 2022-02-20
  • 2022-02-08
  • 2022-01-01
猜你喜欢
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2021-07-23
  • 2022-01-01
  • 2021-11-12
相关资源
相似解决方案