Centos7系統(tǒng)如何使用whereis命令查找已安裝的程序路徑?本教程以Centos7系統(tǒng)為例
本配置適用于Centos6,7版本
1.whereis 命令名
#搜索命令所在路徑及幫助文檔所在位置
選項:
-b :只查找可執(zhí)行文件位置
-m:只查找?guī)椭募?/p>
[root@localhost ~]# whereis ls
ls: /usr/bin/ls /usr/share/man/man1/ls.1.gz
[root@localhost ~]# whereis -b ls
ls: /usr/bin/ls
[root@localhost ~]# whereis -m ls
ls: /usr/share/man/man1/ls.1.gz
我們可以查到ls命令的位置以及幫助文檔的位置