Since this is a java
process half of the answer is in the screenshot you provided. This bit right here:
-jar spigot.jar
So when that java
process was kicked off that spigot.jar
file was in its current working directory (CWD). Now you just need to determine what the CWD is. There's many ways to do this, I'll cover two:
Use /proc
:
ls -ld /proc/4910/cwd
Note: Replace '4910' as appropriate. The PID can and will change across reboots and restarting services.
/proc/PROCESS-ID/cwd
will be a symlink to what the CWD is for that process.
Another way is to use lsof
:
lsof -P -n -p 4910 | grep cwd