whereis
whereis - 查找二进制、源文件、说明文档
他和locate很像,具体有说明区别,作者现在也没有体会出来;
查找二进制:-b (和which一样)
查找源文件:-s (这个都不知道怎么用,作者不会)
查找说明文档:-m
如果不带任何后缀:遍历查找这三种文件
实例:
执行文件
root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# whereis -b whereis
whereis: /usr/bin/whereis
root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1#
说明文档
root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# whereis -m whereis
whereis: /usr/share/man/man1/whereis.1.gz
root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1#
遍历查询
root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1# whereis whereis
whereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gz
root@ubuntu:/mnt/hgfs/PFolder/uRTK机载型接收机1#
1733

被折叠的 条评论
为什么被折叠?



