Tag: cpus

  • Finding the number of processor units

    ABOUT nproc print the number of processing units available TYPICAL COMMANDLINE SESSION [bash] $nproc 2 $nproc –ignore=1 1 $grep -c ^processor /proc/cpuinfo 2 $cat /proc/cpuinfo | awk ‘/^processor/{print $3=$3+1}’ | tail -1 2 $cat /proc/cpuinfo | awk ‘/^processor/{print $3}’ 0 1 $lscpu | grep CPU CPU op-mode(s): 32-bit, 64-bit CPU(s): 2 On-line CPU(s) list: 0,1 […]