Is there a way to find out the directory/disk location a process was started from? I am aware of the /proc mount but not really where to look inside of it.
Let's take an example with
Find the pid, which is 15421 in this example:
Look up the symbolic link:
Providing you've a process ID available, you can use:
If the process is not owned by you, you'll have to put
An example for determining the location of the command