上一篇 下一篇 分享链接 返回 返回顶部

Centos7系统化如何使用whereis命令查找已安装的应用领域程序路径

发布人:管理员 发布时间:2025-03-02 15:40 阅读量:145

Centos7体系如何使用whereis命令查找已安装的脚本路径

Centos7体系如何使用whereis命令查找已安装的脚本路径?本教程以Centos7体系为例

本配置适用于Centos6,7版本

1.whereis 命令名

#搜索命令所在路径及帮助文档所在位置

选项:

-b :只查找可实施记录位置

-m:只查找帮助记录

[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命令的位置以及帮助文档的位置

目录结构
全文