Created
June 15, 2018 20:18
-
-
Save kkapuria3/16f7a8df19dbc0ba4ffd61bfd39684e2 to your computer and use it in GitHub Desktop.
Get CPU <cores> count of any linux machine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpu=$(grep -c ^processor /proc/cpuinfo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment