Linux指令--whereis

来源:互联网 发布:java并发编程艺术 编辑:程序博客网 时间:2024/06/13 09:20

whereis

whereis - 查找二进制、源文件、说明文档
他和locate很像,具体有说明区别,作者现在也没有体会出来
查找二进制:-b (和which一样)
查找源文件:-s (这个都不知道怎么用,作者不会)
查找说明文档:-m
如果不带任何后缀:遍历查找这三种文件
实例:
执行文件

root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# whereis -b whereiswhereis: /usr/bin/whereisroot@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# 

说明文档

root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# whereis -m whereiswhereis: /usr/share/man/man1/whereis.1.gzroot@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# 

遍历查询

root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# whereis whereiswhereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gzroot@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# 
原创粉丝点击