[mdlug] Difference between ps aux & ps auxw

Robert Citek robert.citek at gmail.com
Tue May 15 06:54:21 EDT 2012


Piping obscures the feature of 'w', which is to display more width.

As a sample, compare the output of these three commands:

COLUMNS=10 ps aux
COLUMNS=10 ps auxw
COLUMNS=10 ps auxww

Regards,
- Robert

On Mon, May 14, 2012 at 11:27 PM, Mat Enders <mat.enders at gmail.com> wrote:
> I always use ps aux I am reading a book that says to use ps auxw.  I can
> not see the difference in the output.  And I can not tell what the
> difference is from reading the man page.
>
> menders-laptop menders # ps auxw | grep [U]SER
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> menders-laptop menders # ps aux | grep [U]SER
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> menders-laptop menders # man ps
>
>
> --
> Mathew E. Enders
>
> "Where once Samba and Apache sold Linux to the world they are now just part
> of the plumbing.  But that's OK, plumbers make good money."
> --Jeremy Allison
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug



More information about the mdlug mailing list