标签: bash cpu
我试过了:
top -bn1 | grep "Cpu(s)" | \ > sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | \ > awk '{print 100 - $1"%"}' 2.1%
是什么意思?