개발참고/리눅스
리눅스 기본명령어 - OS버전 및 기본정보 체크
헤헤헤~
2022. 11. 1. 13:53
728x90
안녕하세요.
리눅스 기본명령어 중 OS버전 및 기본정보 체크에 대해 알아보겠습니다.
※ 리눅스 계열에 따라 명령어가 달라지거나 실행되지 않을 수 있습니다.
cat /etc/redhat-release : 리눅스 OS버전정보 (기본)
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@localhost ~]# cat /etc/system-release
CentOS Linux release 7.6.1810 (Core)
[root@localhost ~]# cat /etc/*-release
CentOS Linux release 7.6.1810 (Core)
uname -a : 리눅스 OS 버전정보 (시스템정보)
[root@localhost ~]# uname -a
Linux ruwa64-089.fmcity.com 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cat /proc/version : 리눅스 OS버전정보 (커널버전)
[root@localhost ~]# cat /proc/version
Linux version 3.10.0-957.27.2.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon Jul 29 17:46:05 UTC 2019
getconf LONG_BIT : 리눅스 OS bit 확인
[root@localhost ~]# getconf LONG_BIT
64
lscpu : 리눅스 하드웨어정보
[root@localhost ~]# 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: 1
Socket(s): 2
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
Stepping: 2
CPU MHz: 2497.355
BogoMIPS: 4994.26
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 30720K
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 acpi mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm intel_ppin ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt md_clear spec_ctrl intel_stibp flush_l1d
dmidecode -t memory : 리눅스 메모리정보
[root@localhost ~]# dmidecode -t memory
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.4 present.
Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
Location: Other
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 4092 MB
Error Information Handle: Not Provided
Number Of Devices: 1
Handle 0x1100, DMI type 17, 21 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: 0x0000
Total Width: 64 bits
Data Width: 64 bits
Size: 4092 MB
Form Factor: DIMM
Set: None
Locator: DIMM 0
Bank Locator: Not Specified
Type: RAM
Type Detail: None
dmidecode -t processor : 리눅스 프로세서(CPU)정보
[root@localhost ~]# dmidecode -t processor
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.4 present.
Handle 0x0401, DMI type 4, 26 bytes
Processor Information
Socket Designation: CPU 1
Type: Central Processor
Family: Other
Manufacturer: Intel
ID: F2 06 03 00 FF FB CB 17
Version: Not Specified
Voltage: Unknown
External Clock: Unknown
Max Speed: 2497 MHz
Current Speed: 2497 MHz
Status: Populated, Enabled
Upgrade: Other
Handle 0x0402, DMI type 4, 26 bytes
Processor Information
Socket Designation: CPU 2
Type: Central Processor
Family: Other
Manufacturer: Intel
ID: F2 06 03 00 FF FB CB 17
Version: Not Specified
Voltage: Unknown
External Clock: Unknown
Max Speed: 2497 MHz
Current Speed: 2497 MHz
Status: Populated, Enabled
Upgrade: Other
반응형