天天看点

LINUX中获得cpu名称

cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

还可以进一步的分割字串(awk '{print $1}),得到指定名称。

继续阅读