要查看Linux系統中進程的位置,可以使用以下命令:
ps
ps -ef | grep <進程名>
ls
ls -l /proc/<PID>/exe
其中,<PID>為要查看的進程的PID。
<PID>
pwdx
pwdx <PID>