Mac – How to get command line of UNIX process

command linemacprocessunix

Is it possible to grab the command line that was used to invoke a process on Mac OS X?

Best Answer

ps ax shows you the command line of all running processes; you can grep for the pid you want.