title: Number of processors/cores in command line
body: <p>I am running the following command to get the number of processors/cores in Linux:</p>
  
  <pre><code>cat /proc/cpuinfo | grep processor | wc -l
  </code></pre>
  
  <p>It works but it does not look elegant. How would you suggest improve it ? </p>