Linux下查看內存型號、主板、硬盤等查看


1 .Linux 查看內存的插槽數,已經使用多少插槽.每條內存多大:
[root @algerfan  ~]# dmidecode|grep -A5  "Memory Device" |grep Size|grep -v Range
Size:  4096  MB
Size:  4096  MB
Size: No Module Installed
Size: No Module Installed
 
2 .Linux 查看內存的頻率:
[root @algerfan  ~]# dmidecode|grep -A16  "Memory Device" |grep  'Speed'
Speed:  2400  MT/s
Speed:  2400  MT/s
Speed: Unknown
Speed: Unknown
 
3 .在linux查看內存型號的命令:
[root @algerfan  ~]# dmidecode -t memory
 
4 .最大支持幾G內存
[root @algerfan  ~]# dmidecode|grep -P  'Maximum\s+Capacity'
 
5 .查看主板型號:
[root @algerfan  ~]# dmidecode |grep -A16  "System Information$"
 
6 .內存槽及內存條:
[root @algerfan  ~]# dmidecode |grep -A16  "Memory Device$"
 
7 .總共幾個插槽,已使用幾個插槽
[root @algerfan  ~]# dmidecode|grep -P -A5  "Memory\s+Device" |grep Size|grep -v Range
 
8 .硬盤:
[root @algerfan  ~]# fdisk -l
[root @algerfan  ~]# smartctl -a /dev/sda
 
9 .網卡:
[root @algerfan  ~]# mii-tool
 
10 .查看系統品牌和型號
[root @algerfan  ~]# dmidecode |grep  "Product Name"
 
11 .查看物理CPU個數
[root @algerfan  ~]# cat /proc/cpuinfo| grep  "physical id" | sort| uniq| wc -l
 
12 .查看邏輯CPU的個數
[root @algerfan  ~]# cat /proc/cpuinfo| grep  "processor" | wc -l


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM