1.首先查出进程号
ps -aux|grep "command"
或
ps -fx|grep "command"
2.得到进程号之后通过pwdx命令获取进程执行路径
pwdx pid
3.得到进程号之后通过查看/proc 获取进程执行路径
ll /proc/pid/cwd
标签:ps,路径,pid,pwdx,查找,linux,进程,proc From: https://www.cnblogs.com/chentiao/p/16992502.html
ps -aux|grep "command"
或
ps -fx|grep "command"
pwdx pid
ll /proc/pid/cwd
标签:ps,路径,pid,pwdx,查找,linux,进程,proc From: https://www.cnblogs.com/chentiao/p/16992502.html