linux基本命令(17)——whereis命令
2016-05-09 21:36
260 查看
whereis命令用于程序名的搜索,而且只搜索二进制文件(参数-b)、man说明文件(参数-m)和源代码文件(参数-s)。如果省略参数,则返回所有信息。
1、命令格式
whereis [-bmsu] [BMS 目录名 -f ] 文件名
2、命令功能
whereis命令可定位可执行文件、源代码文件、帮助文件在文件系统中的位置。这些文件的属性应属于原始代码,二进制文件,或是帮助文件。
whereis还具有搜索源代码、指定备用搜索路径和搜索不寻常项的能力。
3、命令参数
-b search only for binaries
-B <dirs> define binaries lookup path
-m search only for manuals
-M <dirs>
define man lookup path
-s search only for sources
-S <dirs>
define sources lookup path
-f
terminate <dirs> argument list
-u search for unusual entries
-l output effective lookup paths
4、使用范例
实例1:将和**相关的文件都查找出来
命令:whereis svn
实例2:只将二进制文件查找出来
命令:whereis -b svn
1、命令格式
whereis [-bmsu] [BMS 目录名 -f ] 文件名
2、命令功能
whereis命令可定位可执行文件、源代码文件、帮助文件在文件系统中的位置。这些文件的属性应属于原始代码,二进制文件,或是帮助文件。
whereis还具有搜索源代码、指定备用搜索路径和搜索不寻常项的能力。
3、命令参数
-b search only for binaries
-B <dirs> define binaries lookup path
-m search only for manuals
-M <dirs>
define man lookup path
-s search only for sources
-S <dirs>
define sources lookup path
-f
terminate <dirs> argument list
-u search for unusual entries
-l output effective lookup paths
4、使用范例
实例1:将和**相关的文件都查找出来
命令:whereis svn
实例2:只将二进制文件查找出来
命令:whereis -b svn
相关文章推荐
- Linux socket 初步
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- Linux 下无损图片压缩小工具介绍