If I have multiple copies of the same app on the disk, and only one is running, as I can see with ps, how can I know the absolute path to distinguish from the others?
|
feedback
|
eg: % ps auxwwwe | grep 24466 root 24466 0.0 0.0 1476 280 ? S 2009 0:00 supervise sshd % sudo ls -l /proc/24466/exe lrwxrwxrwx 1 root root 0 Feb 1 18:05 /proc/24466/exe -> /package/admin/daemontools-0.76/command/supervise | |||
|
feedback
|
|
One way is ps -ef | |||
feedback
|
|
The quick answer is to use See the Unix FAQ for a little more detail, particularly questions 4.3 and 4.4. | |||
|
feedback
|
Source: http://serverfault.com/questions/62322/getting-full-path-of-executables-in-ps-auxwww-output | ||||
feedback
|
