Search code examples
linuxunixcommand-lineprocessps

Getting The Full Result from "ps"


How do I get the full width result for the *nix command "ps"?
I know we can specify something like --cols 1000 but is there anyway I can the columns and just print out everything?


Solution

  • Try ps -w -w aux. The -w option sets the output to wide, and doing it twice makes the width unlimited. The "aux" part makes it show more information, and is (afaik) pretty standard mode to use. This is of course platform-dependant, the above works with procps version 3.2.7 on Linux.