How to get overall CPU usage (e.g. 57%) on Linux [closed]

I am wondering how you can get the system CPU usage and present it in percent using bash, for example.

Sample output:

57%

In case there is more than one core, it would be nice if an average percentage could be calculated.

6 Answers
6

Leave a Comment