see cpu info linux code example
Example 1: list cpu linux command
#hows CPU Architecture Info
$ lscpu
Example 2: linux check cpu usage
lscpu
# Or
cat /proc/cpuinfo
#hows CPU Architecture Info
$ lscpu
lscpu
# Or
cat /proc/cpuinfo