Linux 查询CPU 内存,硬盘,操作系统版本 等相关信息

最近需要写一个材料,需要各种信息,百度了很多,稍微整理下。

 

1 查看CPU

1.1 查看CPU个数

# cat /proc/cpuinfo | grep "physical id" | uniq | wc -l

1.2 查看CPU核数

# cat /proc/cpuinfo | grep "cpu cores" | uniq
1.3 查看CPU型号

# cat /proc/cpuinfo | grep 'model name' |uniq
2.查看内存总数

#cat /proc/meminfo | grep MemTotal
3.查看硬盘大小 # fdisk -l | grep Disk

4.查看操作系统版本  cat /etc/redhat-release

5.查看服务器型号:dmidecode | grep 'Product Name'

6.查看主板的序列号:dmidecode |grep 'Serial Number'

7.查看系统序列号:dmidecode -s system-serial-number

8.查看内存型号信息:dmidecode -t memory | egrep   'Manufacturer|Serial Number'

9.查看OEM信息:dmidecode -t 11

10.查看现有内存数量和内存大小:dmidecode | grep -A16 "Memory Device" | grep "Size" |sed 's/^[ \t]*//'  //

11.查看最大支持内存容量:dmidecode | grep "Maximum Capacity" |sed  "s/^[ \t]*//"  

 

 

参考:https://www.cnblogs.com/cooper-73/p/15433219.html

posted @   ni当像鸟飞往你的山  阅读(1196)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
点击右上角即可分享
微信分享提示