Administration
To be familiar with Linux OS, you are recommended to take the free online course Introduction to Linux. For reference books, use 鸟哥的 Linux 私房菜 -- 基础学习篇 and 鸟哥的 Linux 私房菜 -- 服务器架设篇.
Find number of CPUs
cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
Find number of logical CPUs
cat /proc/cpuinfo |grep "processor"|wc -l
Find the number of cores in a CPU cat /proc/cpuinfo |grep "cores"|uniq