chcek number of cpus available on linux machine code example
Example 1: chcek number of cpus available on linux machine
lscpu | egrep 'CPU\(s\)'
Example 2: linux check cpu usage
lscpu
# Or
cat /proc/cpuinfo
lscpu | egrep 'CPU\(s\)'
lscpu
# Or
cat /proc/cpuinfo