how to find out the cores linux terminal code example Example: ubuntu check how many cores cat /proc/cpuinfo | grep processor | wc -l