Skip to content

Instantly share code, notes, and snippets.

@virullius
Created June 13, 2014 21:26
Show Gist options
  • Save virullius/3d5e98936dcfe50e05a0 to your computer and use it in GitHub Desktop.
Save virullius/3d5e98936dcfe50e05a0 to your computer and use it in GitHub Desktop.
Number of cores (or threads if hyperthreaded) and CPU model name
echo $(grep processor /proc/cpuinfo | wc -l)"x" $(grep 'model name' /proc/cpuinfo | head --lines=1 | awk -F':' '{gsub(/^[ ]+/, "", $2);print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment