planetOzh
planetOzh ‐ a virtual .postcard from $me to myself();
Code 2003/12/20 1 min read

Top 5 processes

By Ozh

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

< View plain text >
code

  1. echo "  PID USER     %CPU COMMAND" &&  ps -eo pid,user,pcpu,args --sort pcpu | tail -n 5 | sort -r
BashCodeLinux
← PreviousDont ban me.
Next →Résumé de la loi Fontaine
Ozh : WordPress published author, maker of YOURLS, wine enthusiast and a metal head. Read more about me.

This post

Written on 2003 / December / 20 (22 years , 4 months and 2 days ago) Last updated: 2007/05/09 (19 years and 2 days ago)

Recent Posts

Linux productivity
Shorties 2026/05/05
Reboot
Shorties 2026/05/03
WordCamp Paris slides: Unit Tests for WordPress plugins
WordPress 2015/01/26
Revisiting WordPress smilies in a pure CSS way
WordPress 2014/12/20
WordPress plugin banner as a .PSD
Plugins 2014/09/14

Topics

Shorties Web WordPress My Life Code Plugins Ahah Images PHP Cult Google planetOzh Stats Blogostuff Software sux0rz Spam CSS RSS Tips Linux Wordpress Theme WTF Useless Ego Javascript Music Review GMail Twitter

Subscribe

RSS feed
planetOzh p l a n e t
🄯 Ozh 2000 - 2026
About Archives RSS @ozh@Github@ozh@Mastodonozh.org