title: How to check CPU core usage in Linux or R
body: <p>I'm working on a parallel R project for my class. The project is complete, however, I wanted to add a few details on cpu by core usage to show the difference in time and performance between single core and multicore. There's a paper I read which showed the cpu usage as I wanted, but it doesn't have the code or script. It showed the usage like this: </p>
  
  <pre><code>﻿1 [                                                 0.0%]   
  2 [############################################## 100.0%]    
  3 [*                                                0.7%]    
  4 [                                                 0.0%]   
  </code></pre>
  
  <p>How can show this? </p>
  
  <p>Thank you for your help. </p>