linux check number of cpus in terminal code example Example: chcek number of cpus available on linux machine lscpu | egrep 'CPU\(s\)'