我使用过的Linux命令之whereis - 查找命令的位置我使用过的Linux命令之whereis - 查找命令的位置
本文链接:(转载请注明出处)
用途说明
whereis命令用来查找命令的位置,包括执行文件、源代码和手册页文件(locate the binary,
source, and manual page files for a command)。如果要查找任意文件的所在位置,可以使用locate或者find等命令。
常用参数
格式:whereis ;
查找指定命令;的位置,包括执行文件、源代码和手册页文件。
格式:whereis -b ;
只查找指定命令...
我使用过的Linux命令之whereis - 查找命令的位置
本文链接:(转载请注明出处)
用途说明
whereis命令用来查找命令的位置,包括执行文件、源代码和手册页文件(locate the binary,
source, and manual page files for a command)。如果要查找任意文件的所在位置,可以使用locate或者find等命令。
常用参数
格式:whereis <;command>;
查找指定命令<;command>;的位置,包括执行文件、源代码和手册页文件。
格式:whereis -b <;command>;
只查找指定命令<;command>;的执行文件位置。
格式:whereis -m <;command>;
只查找指定命令<;command>;的手册页文件所在位置。
格式:whereis -s <;command>;
只查找指定命令<;command>;的源代码所在位置。
使用示例
示例一
[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 命令
【2】方寸心间 一路走,十年不回头 linux whereis 命令详解
【3】Linux安全在线 linux whereis命令参数及用法详解---linux定位文件位置命令
【4】酷勤 Linux的五个查找命令:find,locate,whereis,which,type
返回 我使用过的Linux命令系列总目录
本文档为【我使用过的Linux命令之whereis - 查找命令的位置】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。