Skip to content

Instantly share code, notes, and snippets.

@Dih5
Created April 30, 2019 09:02
Show Gist options
  • Save Dih5/11f5c8683c7c97ff25a0f32ac53d92dd to your computer and use it in GitHub Desktop.
Save Dih5/11f5c8683c7c97ff25a0f32ac53d92dd to your computer and use it in GitHub Desktop.
Count the number of cores the system
#!/bin/sh
cat /proc/cpuinfo | grep -i 'processor' | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment