• 查看centos CPU、内存、版本等信息


    2018-12-29


    查看当前linux的系统版本

    cat /etc/redhat-release

    查看内核版本

    uname -a

    查看CPU是32位还是64位

    getconf LONG_BIT

    查看CPU型号

    cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

    # 总核数 = 物理CPU个数 X 每颗物理CPU的核数
    # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数

    # 查看物理CPU个数

    cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l

    # 查看每个物理CPU中core的个数(即核数)

    cat /proc/cpuinfo| grep "cpu cores"| uniq

    # 查看逻辑CPU的个数

    cat /proc/cpuinfo| grep "processor"| wc -l

    查看CPU详细信息

    cat /proc/cpuinfo 

    查看磁盘大小

    df -h

    查看磁盘详细信息

    dmesg | grep ATA

    查看主板信息

    dmidecode
    Handle 0x0000, DMI type 0, 24 bytes
    BIOS Information
            Vendor: Intel Corp.
            Version: GTG4310H.86A.0019.2009.0625.1334
            Release Date: 06/25/2009
    
    .....
    
    System Information  服务器品牌
            Manufacturer:                                  
            Product Name:              (没有信息表示非品牌或未识别)                    
            Version:                                  
            Serial Number:                                  
            UUID: 889BD67E-8D96-11DE-AC40-0013D4D9C9E8
            Wake-up Type: Power Switch
            SKU Number: Not Specified
            Family: Not Specified
    
    Handle 0x0002, DMI type 2, 15 bytes
    Base Board Information  主板型号/主板信息
            Manufacturer: Intel Corporation
            Product Name: DG43GT
            Version: AAE62768-300
            Serial Number: BTGT9340022N
    
    Processor Information  CPU信息/CPU型号/CPU主频
            Socket Designation: PROCESSOR
            Type: Central Processor
            Family: Pentium D
            Manufacturer: Intel(R) Corp.
            ID: 7A 06 01 00 FF FB EB BF
            Signature: Type 0, Family 6, Model 23, Stepping 10
            Version: Pentium(R) Dual-Core  CPU      E6500  @ 2.93GHz   
            Voltage: 1.2 V
            External Clock: 266 MHz
            Max Speed: 4000 MHz
            Current Speed: 2931 MHz
            Status: Populated, Enabled
            Upgrade: Socket LGA775
    
    Cache Information  硬件和CPU缓存情况
            Socket Designation: L1-Cache
            Configuration: Enabled, Not Socketed, Level 1
            Operational Mode: Write Back
            Location: Internal
            Installed Size: 32 kB
            Maximum Size: 32 kB
    
    BIOS Language Information  BIOS语言
            Installable Languages: 1
                    en|US|iso8859-1
            Currently Installed Language: en|US|iso8859-1
    
    Physical Memory Array  主板最大支持内存
            Location: System Board Or Motherboard
            Use: System Memory
            Error Correction Type: None
            Maximum Capacity: 16 GB
            Error Information Handle: Not Provided
            Number Of Devices: 4
    
    Handle 0x002C, DMI type 19, 15 bytes
    Memory Array Mapped Address  目前的内存
            Starting Address: 0x00000000000
            Ending Address: 0x000FFFFFFFF
            Range Size: 4 GB
            Physical Array Handle: 0x002B
            Partition Width: 0
    
    On Board Device Information  显卡型号
            Type: Video
            Status: Enabled
            Description:  Intelr GMA X4500 Video Device 
  • 相关阅读:
    Conversion to Dalvik format failed with error 1 解决方法
    android 简单的反编译
    android ant打包问题总结
    android Sdcard 不同系统映射
    android 好用的开源框架
    android ScrollView 与 ListView 冲突汇总
    android 关于ImageView无法显示过长图片
    android 微信分享api调用总结
    android 捕获线程出错 重启线程
    c++中的容器和string类
  • 原文地址:https://www.cnblogs.com/fqxy/p/10196160.html
Copyright © 2020-2023  润新知