title: How to get overall CPU usage (e.g. 57%) on Linux
body: <p>I am wondering how you can get the system CPU usage and present it in percent using bash, for example.</p>
  
  <p>Sample output:</p>
  
  <pre><code>57%
  </code></pre>
  
  <p>In case there is more than one core, it would be nice if an average percentage could be calculated.</p>