Skip to content

Instantly share code, notes, and snippets.

@kkapuria3
Created June 15, 2018 20:18
Show Gist options
  • Save kkapuria3/16f7a8df19dbc0ba4ffd61bfd39684e2 to your computer and use it in GitHub Desktop.
Save kkapuria3/16f7a8df19dbc0ba4ffd61bfd39684e2 to your computer and use it in GitHub Desktop.
Get CPU <cores> count of any linux machine.
cpu=$(grep -c ^processor /proc/cpuinfo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment