UNIX Cheat Sheet

From NYC Resistor Wiki
Jump to navigation Jump to search

If I bothered to look it up, it's probably useful to someone. - wwward

Getting process/status/interesting info[edit]

PS - report process status[edit]

So you want to list the entire command line related to a process on your box? This is a common need for folks troubleshooting Java applications where the JVM has a lengthy invocation of command line arguments. Depending on whether you're using Linux/Mac or Solaris, the PS command options differ for this "wide" view: On Linux/Mac: ps -ww On Solaris: /usr/ucb/ps -ww (the stock Solaris ps implementation does not support "ww" and seems to lack a handy equivalent.)

Source: http://robertmaldon.blogspot.com/2006/07/getting-full-java-command-line-from.html