原创

Linux 查询某个软件安装路径


Linux 查询某个软件安装路径

​ 例如: 查找mysql

  1. 使用find / -name mysql

  2. 使用which 或 whereis

    which mysql
    whereis mysql
    
  3. 如果命令 which 和whereis 都找不到安装目录,可使用以下办法:

    ps -ef|grep mysql
    

    得到了进程号 xxxx,

    然后

    ls -l /proc/xxxx/cwd