how to check how many cores my laptop has ubuntu code example Example: ubuntu check how many cores cat /proc/cpuinfo | grep processor | wc -l