• 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  

  • 相关阅读:
    【Java每日一题】20161202
    【Java每日一题】20161201
    【Java每日一题】20161130
    LeetCode刷题:Reverse Words in a String(翻转字符串中的单词)
    **公司实习生笔试总结
    C++ primer学习笔记_6_函数---函数定义、参数传递
    求职面试--复习笔记3
    求职面试--复习笔记2
    一道经典面试题,atoi函数的实现
    求职面试-算法复习系列
  • 原文地址:https://www.cnblogs.com/fanblogs/p/11687302.html
Copyright © 2020-2023  润新知