Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Josh Belliveau
Added: Mar 21, 2019 5:36 PM
Modified: Mar 21, 2019 5:41 PM
Views: 10
Tags: bash cores
credit to: https://stackoverflow.com/questions/6481005/how-to-obtain-the-number-of-cpus-cores-in-linux-from-the-command-line

easier... but incorrect: grep -c ^cpu\\scores /proc/cpuinfo
  1. grep ^cpu\\scores /proc/cpuinfo | uniq |  awk '{print $4}'