Linux 查看内存条数据和大小命令

查看内存条数据和大小命令:

sudo dmidecode | grep -A16 "Memory Device$"

需要root 权限..

[life@localhost mp3blaster-3.2.5]$ sudo dmidecode | grep -A16 "Memory Device$"  
[sudo] password for life:                                                       
Memory Device                                                                   
        Array Handle: 0x000F                                                    
        Error Information Handle: No Error                                      
        Total Width: 64 bits                                                    
        Data Width: 64 bits                                                     
        Size: 256 MB                                                            
        Form Factor: DIMM                                                       
        Set: 1                                                                  
        Locator: DIMM1                                                          
        Bank Locator: DIMM1                                                     
        Type: DRAM                                                              
        Type Detail: Synchronous                                                
        Speed: Unknown                                                          
        Manufacturer: Not Specified                                             
        Serial Number: Not Specified                                            
        Asset Tag: Not Specified                                                
        Part Number: Not Specified                                              
--                                                                              
Memory Device                                                                   
        Array Handle: 0x000F                                                    
        Error Information Handle: No Error                                      
        Total Width: 64 bits                                                    
        Data Width: 64 bits                                                     
        Size: 512 MB                                                            
        Form Factor: DIMM                                                       
        Set: 1                                                                  
        Locator: DIMM2                                                          
        Bank Locator: DIMM2                                                     
        Type: DRAM                                                              
        Type Detail: Synchronous                                                
        Speed: Unknown                                                          
        Manufacturer: Not Specified                                             
        Serial Number: Not Specified                                            
        Asset Tag: Not Specified                                                
        Part Number: Not Specified                                              
--                                                                              
Memory Device                                                                   
        Array Handle: 0x000F                                                    
        Error Information Handle: No Error                                      
        Total Width: Unknown                                                    
        Data Width: Unknown                                                     
        Size: No Module Installed    (没有安装内存)                                         
        Form Factor: DIMM                                                       
        Set: 1                                                                  
        Locator: DIMM3                                                          
        Bank Locator: DIMM3                                                     
        Type: DRAM                                                              
        Type Detail: Unknown                                                    
        Speed: Unknown                                                          
        Manufacturer: Not Specified                                             
        Serial Number: Not Specified                                            
        Asset Tag: Not Specified                                                
        Part Number: Not Specified  

posted @ 2019-10-16 18:11  古语云  阅读(4840)  评论(0编辑  收藏  举报