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