zoukankan      html  css  js  c++  java
  • which,whereis,locate,find

    which      查看可执行文件的位置

    [root@redhat ~]# which passwd 
    /usr/bin/passwd 
    which是通过 PATH 环境变量到该路径内查找可执行文件,所以基本的功能是寻找可执行文件


    whereis    查看文件的位置

    [root@redhat ~]# whereis passwd 
    passwd: /usr/bin/passwd /etc/passwd /usr/bin/X11/passwd /usr/share/man/man5/passwd.5.gz /usr/share/man/man1/passwd.1.gz /usr/share/man/man1/passwd.1ssl.gz
    将和passwd文件相关的文件都查找出来

    locate     配合数据库查看文件位置 
    find       实际搜寻硬盘查询文件名称

  • 相关阅读:
    MQ
    redis
    MongoDB
    进程相关命令
    catalina.sh
    tomcat-jvm
    中间件简介
    websphere
    mysql
    shell变量与字符串操作
  • 原文地址:https://www.cnblogs.com/ymjyqsx/p/6946725.html
Copyright © 2011-2022 走看看