Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I view what command line arguments are passed to a running process on Mac OS X?

share|improve this question
up vote 7 down vote accepted

Run a normal process listing through Terminal:

ps auxww

The ww options are BSD syntax for a wide listing. You can also use:

ps -ef

for the now commonly used POSIX syntax.

Example output, where you can see the arguments of various processes:

werner   22208   3.8  0.1   187288   4692   ??  SN    2May12 373:03.43 CocoaDialog progressbar --indeterminate --title LaTeX Watch --text LaTeX Watch: Compiling document
werner    9860   3.0  1.9   694776 161780   ??  S    Fri06PM  26:18.32 /Applications/ -psn_0_133185276
werner    9791   2.4  0.4  2918396  30876   ??  S    Fri06PM   0:19.30 /Applications/ -psn_0_133144306
werner    9718   2.2  0.8   531556  67940   ??  S    Fri06PM  24:10.68 /Applications/Google Drive -psn_0_132955844
_windowserver  9663   1.9  1.7  3297256 144764   ??  Ss   Fri06PM  16:48.69 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/WindowServer -daemon
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .