msgbartop
MAC OS X, Linux, Windows and other IT Tips and Tricks
msgbarbottom

05 Apr 16 Useful ps options

Here are some (growing) tricks in order to get the maximum of the PS command:
I set the command’s options in an alias to simplify the running of it.
alias psa='ps --headers axf -o pid,ppid,pri,state,user:15,group:15,nlwp,%cpu,%mem,rss,vsz,maj_flt,time,start,comm'
#

One advantage of this above command is that it displays the username in its full length even if it’s long. Normally the ps command displays long usernames as their PIDs only.

Reader's Comments

  1.    

    That’s pretty cool, nice one.

    Reply to this comment

Leave a Reply to jalal Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: