If I can see a process running using ps -e, how can I find the file which launched it?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||||||
|
|
On Linux: if you know the PID, you can cat the cmdline file for that file. E.g.:
This will probably fail if the binary was moved after the program was started. And of course:
and:
which is a symbolic link to the executable. |
|||||
|
|
Copy the process id from
|
|||||
|