Linux idle time one-liner

I regularly need to see how much time an embedded Linux box is spending idle, so I can determine what impact performance improvement fixes have on the system over time. ¬†Since ‘w’ is pretty much useless I use the following one-liner to parse the /proc/uptime

awk '{print ($2*100)/$1 " % idle over "$1/60 " min"}' /proc/uptime

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment


1 × three =

WordPress Themes