리눅스 버전및 CPU등 환경정보 확인하기 위한 명령어 입니다.
* 리눅스 버전 확인
# cat /etc/issue
CentOS release 5.4 (Final)
Kernel \r on an \m
또는
# cat /etc/redhat-release
CentOS release 5.4 (Final)
* 리눅스 커널 버전 확인
# cat /proc/version
Linux version 2.6.18-164.6.1.el5 (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Tue Nov 3 16:18:27 EST 2009
* OS 커널 비트수(Kernel Bits) 확인하기
# getconf WORD_BIT
32
* uname 명령(unix name의 줄임말) 으로 OS Kernel Architecture 확인하기
# uname -m
i686
<참고 : uname 명령어 사용법>
# uname (옵션)
>> 옵션
-a : All 모든 정보
-i : Platform 정보
-m : System Kernel Architecture 정보
-n : Nodename(Host name) 정보
-p : Processor(Processor type) 정보
-r : System OS Release 정보
-s : System OS 정보
-v : Kernel ID 정보
-X : 조금더 디테일 한 정보
-S : 호스트 이름 변경
* 리눅스 CPU 정보확인
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz
stepping : 13
cpu MHz : 2400.210
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 4800.42
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz
stepping : 13
cpu MHz : 2400.210
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 4799.48
* 리눅스 메모리 정보확인
cat /proc/meminfo
MemTotal: 2066244 kB
MemFree: 1464048 kB
Buffers: 192900 kB
Cached: 333584 kB
SwapCached: 0 kB
Active: 345652 kB
Inactive: 210044 kB
HighTotal: 1170304 kB
HighFree: 800072 kB
LowTotal: 895940 kB
LowFree: 663976 kB
SwapTotal: 4128760 kB
SwapFree: 4128760 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 29324 kB
Mapped: 14912 kB
Slab: 35256 kB
PageTables: 1636 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 5161880 kB
Committed_AS: 197200 kB
VmallocTotal: 114680 kB
VmallocUsed: 6324 kB
VmallocChunk: 108096 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 4096 kB
*DISK 용량 확인
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup01-LogVol00
141G 2.4G 131G 2% /
/dev/sda1 99M 18M 76M 19% /boot
tmpfs 1009M 0 1009M 0% /dev/shm