linux whereis which
来源:互联网 发布:ubuntu ssh服务开启 编辑:程序博客网 时间:2024/06/05 20:02
whereis 命令只能用于程序名的搜索,而且只搜索二进制文件(参数-b)、man说明文件(参数-m)和源代码文件(参数-s)。
[root@localhost ~]# whereis svnsvn: /usr/bin/svn /usr/share/man/man1/svn.1.gz[root@localhost ~]# whereis tomcattomcat: /usr/local/tomcat[root@localhost ~]#
which 命令的作用是,在PATH变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果。也就是说,使用which命令,就可以看到某个系统命令是否存在,以及执行的到底是哪一个位置的命令。
[root@localhost ~]# which chmod/bin/chmod[root@localhost ~]# which pwd/bin/pwd[root@localhost ~]# which adduser/usr/sbin/adduser[root@localhost ~]#
说明:which 是根据使用者所配置的 PATH 变量内的目录去搜寻可运行档的!所以,不同的 PATH 配置内容所找到的命令当然不一样的!
0 0
- linux whereis which
- linux which whereis locate find
- linux 下which、whereis、locate、find区别
- linux 下which、whereis、locate、fine区别
- linux下which、whereis、locate、find区别
- Linux下which、whereis、locate、find 区别
- Linux下which、whereis、locate、find 区别
- Linux下which、whereis、locate、find 区别
- Linux下which、whereis、locate、find 区别
- linux常见命令(which,whereis,locate,find)
- Linux下which、whereis、locate、find 区别
- [Linux] 查找 - which, whereis, locate, find
- linux文件名查找which,whereis,locate
- Linux下which、whereis、locate、find 区别
- Linux下which、whereis、locate、find 区别
- [Linux]whereis,which, locate, man -f
- Linux 定位和查找 which locate whereis
- Linux下whereis和which的区别
- Linux:crontab命令学习
- linux du 与 df 命令
- linux grep
- linux tail
- 如何理解矩阵特征值
- linux whereis which
- tomcat安装配置
- linux 目录结构
- python学习笔记30(全局变量的两种解决办法)
- MySQL SQL语句优化技巧
- OSI七层模型
- TCP/IP协议
- TCP协议三次握手、四次断开 过程分析
- javascript: if语句中的判断条件,什么时候为假?