macOS – How to Inspect Environment Variables of a Running Process

command lineunix

Is there some equivalent (CLI or GUI) to Linux's /proc/$PID/environ feature?

Best Answer

You can inspect environmental variables of running process with

ps eww <PID>