linux系统查看软件安装目录的方法

linux系统下怎么查看软件安装的目录?

方法1:

whereis 软件名

以查询nginx为例子

whereis nginx

方法2:

ps -ef|grep 软件名
ls -l /proc/进程号/cwd

如查看mysql:

ps -ef|grep mysql
ls -l /proc/1285/cwd
原文链接:,转发请注明来源!