16
rated 0 times
[
16]
[
0]
/ answers: 1 / hits: 121336
/ 3 Years ago, wed, october 13, 2021, 6:24:33
I want to see CPU usage.
I used this command :
top -bn1 | grep "Cpu(s)" |
sed "s/.*, *([0-9.]*)%* id.*/1/" |
awk '{print 100 - $1}'
But it returns 100%.
What's the correct way?
More From » command-line