Linux Shell CentOS 查看Linux CPU 相关信息

it2024-04-21  57

文章目录

Linux Shell CentOS 查看Linux CPU 相关信息1、代码2、运行结果

Linux Shell CentOS 查看Linux CPU 相关信息


1、代码

prt "有几个逻辑 CPU 以及 CPU 型号 CPU 主频" cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c prt "CPU 模型名称" more /proc/cpuinfo | grep "model name" prt "CPU 当前的工作模式是 32 位还是 64位" getconf LONG_BIT prt "CPU 是否支持 64 位计算,大于 0 为支持" cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

2、运行结果

简简单单OnlineZuozuo 认证博客专家 Spring 架构 分布式 未闻万里蓬莱,而窥先圣遗智。故,以此生筑梦,奔而逐之;以泰山之伟,攀而登之;以静雅素心,处世为人。------zuozuo著
最新回复(0)