Skip to content

Instantly share code, notes, and snippets.

@mhammonds
Last active August 29, 2015 14:02
Show Gist options
  • Save mhammonds/1b789aac6e64976f8224 to your computer and use it in GitHub Desktop.
Save mhammonds/1b789aac6e64976f8224 to your computer and use it in GitHub Desktop.
Mac Core Finder
# Return the number of cores on a Mac OS machine
sysctl -n hw.ncpu
# This also works
sysctl hw.ncpu | awk '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment