check CPU on linux code example
Example 1: list cpu linux command
#hows CPU Architecture Info
$ lscpu
Example 2: linux check cpu core
lscpu
#or
cat /proc/cpuinfo
#hows CPU Architecture Info
$ lscpu
lscpu
#or
cat /proc/cpuinfo