Linux "시스템 정보" 확인 명령어

Develop/Linux 2020.12.08 댓글 PSJco
728x90
반응형

Linux OS의 시스템 정보를 확인하는 명령어를 정리해 본다.

OS 버전 확인 방법도 여러 가지가 있다. 편한 걸 골라 쓰도록 하자! 또, 시스템 정보는 CPU/Memory 등 가끔 확인할 일이 있을 때 사용하면 유용하다~!! 

 

#1. 시스템 정보. 

 

  • OS 정보 확인

    uname -a : 리눅스 커널정보(버전,명), 머신명, 프로세서 타입, 플랫폼, OS 정보를 표시한다.

    $ uname -a
    Linux XXXXXXXXXXXX 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

    cat /etc/issue : OS 버전정보 표시. (CentOS 7 기존 정보표시 X) 

    $ cat /etc/issue
    \S
    Kernel \r on an \m
    

    cat /etc/redhat-release : OS 버전 정보 표시 1. 

    $ cat /etc/redhat-release
    CentOS Linux release 7.8.2003 (Core)

    cat /etc/*release* : OS 버전정보 표시 2. 

    $ cat /etc/*release*
    CentOS Linux release 7.8.2003 (Core)
    Derived from Red Hat Enterprise Linux 7.8 (Source)
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"
    
    CENTOS_MANTISBT_PROJECT="CentOS-7"
    CENTOS_MANTISBT_PROJECT_VERSION="7"
    REDHAT_SUPPORT_PRODUCT="centos"
    REDHAT_SUPPORT_PRODUCT_VERSION="7"
    
    CentOS Linux release 7.8.2003 (Core)
    CentOS Linux release 7.8.2003 (Core)
    cpe:/o:centos:centos:7
    

  • 하드웨어 정보

    lscpu : CPU 관련 상세 정보 표시.

    $ lscpu
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                2
    On-line CPU(s) list:   0,1
    Thread(s) per core:    1
    Core(s) per socket:    2
    Socket(s):             1
    NUMA node(s):          1
    Vendor ID:             AuthenticAMD
    CPU family:            16
    Model:                 6
    Model name:            AMD Turion(tm) II Neo N54L Dual-Core Processor
    Stepping:              3
    CPU MHz:               800.000
    CPU max MHz:           2200.0000
    CPU min MHz:           800.0000
    BogoMIPS:              4392.93
    Virtualization:        AMD-V
    L1d cache:             64K
    L1i cache:             64K
    L2 cache:              1024K
    NUMA node0 CPU(s):     0,1
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc art rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate retpoline_amd ibp_disable vmmcall npt lbrv svm_lock nrip_save

    dmidecode -t : 타입별 정보 표시. 

    $ dmidecode -t
    dmidecode: option requires an argument -- 't'
    Type number or keyword expected
    Valid type keywords are:
      bios
      system
      baseboard
      chassis
      processor
      memory
      cache
      connector
      slot
    

    dmidecode -t system: 시스템 정보 표시. 

    $ dmidecode -t system
    # dmidecode 3.2
    Getting SMBIOS data from sysfs.
    SMBIOS 2.6 present.
    
    Handle 0x0001, DMI type 1, 27 bytes
    System Information
            Manufacturer: HP
            Product Name: ProLiant MicroServer
            Version:
            Serial Number: XXXXXXXXXXXXXXX
            UUID: XXXXXX-X-1-00-XX
            Wake-up Type: Power Switch
            SKU Number: XXXX
            Family:
    
    Handle 0x001A, DMI type 32, 20 bytes
    System Boot Information
            Status: No errors detected
    

    dmidecode -t memory: 메모리 정보 표시. 

    $ dmidecode -t memory
    # dmidecode 3.2
    Getting SMBIOS data from sysfs.
    SMBIOS 2.6 present.
    
    Handle 0x0014, DMI type 16, 15 bytes
    Physical Memory Array
            Location: System Board Or Motherboard
            Use: System Memory
            Error Correction Type: Single-bit ECC
            Maximum Capacity: 8 GB
            Error Information Handle: Not Provided
            Number Of Devices: 2
    
    Handle 0x0016, DMI type 17, 28 bytes
    Memory Device
            Array Handle: 0x0014
            Error Information Handle: Not Provided
            Total Width: 72 bits
            Data Width: 64 bits
            Size: 4096 MB
            Form Factor: DIMM
            Set: None
            Locator: DIMM0
            Bank Locator: BANK0
            Type: Other
            Type Detail: Synchronous
            Speed: 1333 MT/s
            Manufacturer: Manufacturer00
            Serial Number: SerNum00
            Asset Tag: Not Specified
            Part Number: ModulePartNumber00
            Rank: Unknown
    
    Handle 0x0018, DMI type 17, 28 bytes
    Memory Device
            Array Handle: 0x0014
            Error Information Handle: Not Provided
            Total Width: Unknown
            Data Width: 64 bits
            Size: No Module Installed
            Form Factor: Other
            Set: None
            Locator: DIMM1
            Bank Locator: BANK1
            Type: DDR3
            Type Detail: None
            Speed: Unknown
            Manufacturer: 
            Serial Number: 
            Asset Tag: 
            Part Number: 
            Rank: Unknown
    

    dmidecode -t processor: 프로세서(CPU) 정보 표시. 

    $ dmidecode -t processor
    # dmidecode 3.2
    Getting SMBIOS data from sysfs.
    SMBIOS 2.6 present.
    
    Handle 0x0003, DMI type 4, 42 bytes
    Processor Information
            Socket Designation: CPU 1
            Type: Central Processor
            Family: Other
            Manufacturer: AMD
            ID: 63 0F 10 00 FF FB 8B 17
            Version: AMD Turion(tm) II Neo N54L Dual-Core Processor
            Voltage: 1.1 V
            External Clock: 200 MHz
            Max Speed: 2200 MHz
            Current Speed: 2200 MHz
            Status: Populated, Enabled
            Upgrade: Other
            L1 Cache Handle: 0x0004
            L2 Cache Handle: 0x0005
            L3 Cache Handle: 0x0006
            Serial Number: To Be Filled By O.E.M.
            Asset Tag: To Be Filled By O.E.M.
            Part Number: To Be Filled By O.E.M.
            Core Count: 2
            Core Enabled: 2
            Thread Count: 2
            Characteristics:
            64-bit capable
    

이상으로 linux 시스템 정보를 확인할 때 사용하는 명령어에 대해 알아보았다. 

도움이 되셨다면, 공감 or 댓글 하나 씨게 부탁드린다! ^^

 

728x90
반응형

댓글