Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux命令 > 文件管理 > » 正文

linux whereis命令参数及用法详解---linux定位文件位置命令

来源: 未知 分享至:

whereis命令是定位可执行文件、源代码文件、帮助文件在文件系统中的位置

whereis命令的语法:whereis [-bmsu] [BMS 目录名 -f ] 文件名

whereis命令的各选项含义如下:

-b   定位可执行文件。
-m   定位帮助文件。
-s   定位源代码文件。
-u   搜索默认路径下除可执行文件、源代码文件、帮助文件以外的其它文件。
-B   指定搜索可执行文件的路径。
-M   指定搜索帮助文件的路径。
-S   指定搜索源代码文件的路径。


whereis命令例子:
[root@linux.iamhjl.cn hzl126]# whereis apache2
apache2: /usr/local/apache2
[root@linux.iamhjl.cn hzl126]# whereis mysql
mysql: /usr/local/mysql
[root@linux.iamhjl.cn hzl126]# whereis httpd
httpd: /usr/sbin/httpd.event /usr/sbin/httpd.worker /usr/sbin/httpd /etc/httpd /usr/lib/httpd /usr/share/man/man8/httpd.8.gz


Tags: whereis whereis命令 whereis详解
分享至:
最新图文资讯
1 2 3 4 5 6
相关文章列表:
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史