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

时间:2021-07-18 11:31:46

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

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