1 查看CPU1.1 查看CPU个数# cat proccpuinfo | grep "physical id" | uniq | wc -l2 **uniq命令:删除重复行;wc –l命令:统计行数**1.