帮助中心

DNS污染处理

常见问题

香港高防IP

常见问题

香港大带宽服务器

产品简介 操作指南 常见问题

新加坡高防服务器

产品简介 操作指南 常见问题

新加坡云服务器

产品简介 操作指南 常见问题

香港服务器租用

产品简介 操作指南 常见问题

香港高防服务器

产品简介 操作指南 常见问题

域名服务

域名服务

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

时间 : 2023-05-11 11:13:45
编辑 : 华纳云

  Centos7系统如何使用whereis命令查找已安装的程序路径?本教程以Centos7系统为例,本配置适用于Centos6.7版本:

  1.whereis 命令名

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

  选项:

  -b :只查找可执行文件位置

  -m:只查找帮助文件

  [root@localhost ~]# whereis ls

  ls: /usr/bin/ls /usr/share/man/man1/ls.1.gz

https://www.hncloud.com/uploads/UEditorImages/202305/11/4ff9239d49b67692631985410de7de79.jpg

  [root@localhost ~]# whereis -b ls

  ls: /usr/bin/ls

https://www.hncloud.com/uploads/UEditorImages/202305/11/a04122a755d2aa908759590a6782424c.jpg

  [root@localhost ~]# whereis -m ls

  ls: /usr/share/man/man1/ls.1.gz

https://www.hncloud.com/uploads/UEditorImages/202305/11/a6b18d51a4f5e6a6ce678aa494f5ed22.jpg

  我们可以查到ls命令的位置以及帮助文档的位置


客服咨询
7*24小时技术支持
Telegram
hncloudnoc

技术支持

渠道支持