Updated : Apr 05, 2016 in Bash

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.

1 Comment

Leave a Reply

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

%d bloggers like this: