Linux下which、whereis、locate、find命令的区别
2016-04-19 09:28
555 查看
1、which 查看可执行文件的位置 (通过环境变量)
which nginx
2、whereis 查看文件位置
whereis apachectl
3、locate
有自己的数据库文件查找文件位置
4、find遍历磁盘查找(可加正则表达式)
find / -name nginx
which nginx
2、whereis 查看文件位置
whereis apachectl
3、locate
有自己的数据库文件查找文件位置
4、find遍历磁盘查找(可加正则表达式)
find / -name nginx
相关文章推荐
- Linux su su -的区别
- Linux ifup ifdown 命令
- Linux无需开发底层驱动,从应用层获取GPIO中断
- linux系统免密码登陆
- linux下的100个常用命令大全
- linux下安装QQ并运行
- 在linux下安装mysql数据库
- Linux守护进程运行命令daemonize
- HBase集群配置
- Zookeeper集群环境配置
- wifi无法连接华为Mate8 热点问题
- Linux版本选择(CentOS)
- linux开机启动流程
- linux用户权限和用户组详解
- fastDFS 一二事 - 简易服务器搭建(单linux)
- 关于Windows和Linux的那些事儿
- 【整理】Linux下中文检索引擎coreseek4安装,以及PHP使用sphinx的三种方式(sphinxapi,sphinx的php扩展,SphinxSe作为mysql存储引擎)
- Centos 6.4打包tengine的rpm安装包教程
- linux云服务器硬盘分区及挂载
- 2.1Linux系统基础入门