Show current working directory of a process

ps

lsof -p <PID> | grep cwd

click the source code to copy install ps on any operating system with command-not-found.com