whereis mysql 三个目录_我使用过的Linux命令之whereis - 查找命令的位置

我使用过的Linux命令之whereis - 查找命令的位置

用途说明

whereis命令用来查找命令的位置,包括执行文件、源代码和手册页文件(locate the binary, source, and manual page files for a command)。如果要查找任意文件的所在位置,可以使用locate或者find等命令。

常用参数

格式:whereis

查找指定命令的位置,包括执行文件、源代码和手册页文件。

格式:whereis -b

只查找指定命令的执行文件位置。

格式:whereis -m

只查找指定命令的手册页文件所在位置。

格式:whereis -s

只查找指定命令的源代码所在位置。

使用示例

示例一

[root@jfht ~]# whereis whereis

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

[root@jfht ~]# whereis -b whereis

whereis: /usr/bin/whereis

[root@jfht ~]# whereis -m whereis

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

[root@jfht ~]# whereis -s whereis

whereis:

[root@jfht ~]#

示例二

[root@jfht ~]# whereis mysql

mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

[root@jfht ~]# whereis -b mysql

mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql

[root@jfht ~]# whereis -m mysql

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

[root@jfht ~]# whereis -s mysql

mysql:

[root@jfht ~]#

问题思考

相关资料

【1】程序人生 Linux whereis 命令

http://www.chengxurensheng.com/htm/2011/2/808.htm

【2】方寸心间 一路走,十年不回头 linux whereis 命令详解

http://www.cnblogs.com/wllyy189/archive/2008/04/09/1144131.html

【3】Linux安全在线 linux whereis命令参数及用法详解---linux定位文件位置命令

http://www.linuxso.com/command/whereis.html

【4】酷勤 Linux的五个查找命令:find,locate,whereis,which,type

http://www.kuqin.com/linux/20091009/70532.html

1

0

分享到:

18e900b8666ce6f233d25ec02f95ee59.png

72dd548719f0ace4d5f9bca64e1d7715.png

2011-04-05 21:42

浏览 8307

评论

1 楼

weida66688

2011-11-25

很喜欢你的东东  Linux   正在抓紧时间学习

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值