Created
May 1, 2014 11:36
-
-
Save sanemat/d6cb661b8bde7f34284c to your computer and use it in GitHub Desktop.
count cpu
This file contains 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
# Count cpu for Ubuntu | |
# https://github.com/grosser/parallel/blob/806762374c950e3e908dfc3f3f0b37564705bcaa/lib/parallel.rb | |
cat /proc/cpuinfo | grep -E '^processor' | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment