Linux 常用命令

CPU相关命令

查看 CPU 物理个数:

grep 'physical id' /proc/cpuinfo | sort -u | wc -l

查看 CPU 核心数量:

grep 'core id' /proc/cpuinfo | sort -u | wc -l

查看 CPU 线程数:

grep 'processor' /proc/cpuinfo | sort -u | wc -l

查看 CPU  型号:

dmidecode -s processor-version

查看 CPU 的详细信息:

cat /proc/cpuinfo

RAM命令

查看内存目前使用情况

free -h

Subscribe to 随心笔记

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe