1 cpu 个数

cat /proc/cpuinfo | grep "physical id" | uniq

2 cpu核数

cat /proc/cpuinfo | grep "cpu cores" | uniq

3 查看内存总数

cat /proc/meminfo | grep MemTotal

还有别的命令,经过测试都没反应,所以先列这几个


Logo

更多推荐