摘要: 那如何查看進(jìn)程的全路徑呢?
其實(shí)每個(gè)進(jìn)程啟動(dòng)之后在 /proc下面有一個(gè)于pid對(duì)應(yīng)的路徑
# ll /proc/31723
總用量 0
dr-xr-xr-x 2 root root 0 3月 19 18:13 attr
-r-------- 1 root root 0 3月 19 18:13 auxv
-r--r--r-- 1 root root 0 3月 19 18:04 cmdline
-rw-r--r-- 1 root root 0 3月 19 18:13 coredump_filter
-r--r--r-- 1 root root 0 3月 19 18:13 cpuset
lrwxrwxrwx 1 root root 0 3月 19 18:13 cwd -> /
-r-------- 1 root root 0 3月 19 18:13 environ
lrwxrwxrwx 1 root root 0 3月 19 18:13 exe -> /usr/sbin/htt
閱讀全文