linux see available cpu 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