In: , ,
On: 2003 / 12 / 20
Shorter URL for this post:

This line displays top 5 processes, sorted by CPU usage.

  1. echo "  PID USER     %CPU COMMAND" &&  ps -eo pid,user,pcpu,args --sort pcpu | tail -n 5 | sort -r

Shorter URL

Want to share or tweet this post? Please use this short URL:


This entry "Top 5 processes" was posted on 20/12/2003 at 10:29 pm and is tagged with , ,
Watch this discussion : Comments RSS 2.0.

No Comment yet

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar and sign for a free account
Spam: Various spam plugins may be activated. I'll put pins in a Voodoo doll if you spam me.

Read more ?

 « Dont ban me.