本站提供娱乐,欢迎转载和分享。

【满融站附近住宿团购群】Linux下查看CPU型号,内存大小,硬盘空间命令

2025-09-19 04:25:34来源:浏览量:852}
SFTP命令详解
  • 02-15 linux sftp介绍
  • 04-17 Linux VPS CentOS 5 实例图解搭建网站(新手必看)
  • 08-27 Linux安装配置maven以及搭建nexus服务器
  • 04-04 Linux 防火墙配置基础篇
  • 阅读本文后您有什么感想?下U型小硬 已有 人给出评价!

    • 0 欢迎喜欢
    • 18 白痴
    • 24 拜托
    • 0 哇
    • 10 加油
    • 9 鄙视

    Linux下查看CPU型号,查看存满融站附近住宿团购群内存大小,硬盘空间命令

    我要评论 2014/01/06 16:38:07 来源 :绿色资源网 编辑 :www.downcc.com [大 中 小] 评论:0 点击:657次

    1 查看CPU

    1.1 查看CPU个数
    # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
    2
    **uniq命令 :删除重复行;wc –l命令:统计行数

    **

    1.2 查看CPU核数
    # cat /proc/cpuinfo | grep "cpu cores" | uniq
    cpu cores       : 4

    1.3 查看CPU型号
    # cat /proc/cpuinfo | grep 'model name' |uniq
    model name      : Intel(R) Xeon(R) CPU           E5630  @ 2.53GHz

    总结:该服务器有2个4核CPU,型号Intel(R) Xeon(R) CPU E5630 @ 2.53GHz

    2 查看内存

    2.1 查看内存总数
    #cat /proc/meminfo | grep MemTotal
    MemTotal:     32941268 kB  //内存32G

    2.2 查看内存条数

    本节内容引自新浪博文《Linux查看内存条数》
    查看原文:

    # dmidecode |grep -A16 "Memory Device$"
    Memory Device
            Array Handle: 0x1000
            Error Information Handle: Not Provided
            Total Width: 72 bits
            Data Width: 64 bits
            Size: 2048 MB                 //1条2G内存
            Form Factor: DIMM
            Set: 1
            Locator: DIMM1
            Bank Locator: Not Specified
            Type: DDR2
            Type Detail: Synchronous
            Speed: 667 MHz
            Manufacturer: 7F7F7F7F7F510000
            Serial Number: 0403E324
            Asset Tag: 450721
            Part Number: 72T256220HR3SA   
    --
    Memory Device
            Array Handle: 0x1000
            Error Information Handle: Not Provided
            Total Width: 72 bits
            Data Width: 64 bits
            Size: 2048 MB                    //1条2G内存
            Form Factor: DIMM
            Set: 1
            Locator: DIMM2
            Bank Locator: Not Specified
            Type: DDR2
            Type Detail: Synchronous
            Speed: 667 MHz
            Manufacturer: 7F7F7F7F7F510000
            Serial Number: 0403E324
            Asset Tag: 450721
            Part Number: 72T256220HR3SA   
    --
    Memory Device
            Array Handle: 0x1000
            Error Information Handle: Not Provided
            Total Width: 72 bits
            Data Width: 64 bits
            Size: No Module Installed           //1个内存空槽
            Form Factor: DIMM
            Set: 2
            Locator: DIMM3
            Bank Locator: Not Specified
            Type: DDR2
            Type Detail: Synchronous
            Speed: Unknown
            Manufacturer:                
            Serial Number:        
            Asset Tag:      
            Part Number:                  
    --
    Memory Device
            Array Handle: 0x1000
            Error Information Handle: Not Provided
            Total Width: 72 bits
            Data Width: 64 bits
            Size: No Module Installed               //1个内存空槽
            Form Factor: DIMM
            Set: 2
            Locator: DIMM4
            Bank Locator: Not Specified
            Type: DDR2
            Type Detail: Synchronous
            Speed: Unknown
            Manufacturer:                
            Serial Number:        
            Asset Tag:      
            Part Number:                  
    --
    Memory Device
            Array Handle: 0x1000
      &

    关键词:Linux

    【本文网址:http://jq1.727757.vip/html/833a8499082.html 欢迎转载】

    栏目一

    Copyright@2003-2019 168.com All rights reserved. 版权所有