1.OS 버전 확인
명령어 : cat /etc/redhat-release or cat /etc/issue
$ cat /etc/redhat-release
CentOS release 6.3 (Final)
2. 리눅스 커널 버전 확인
명령어 : cat /proc/version
$ cat /proc/version
Linux version 2.6.32-279.11.1.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Tue Oct 16 15:57:10 UTC 2012
3. OS 커널 비트수 확인
명령어:
Solaris : isainfo -kv
HP-UX : getconf KERNEL_BITS
AIX : bootinfo -k
Linux : getconf WORD_BIT
Linux (64bit 확인) : getconf LONG_BIT
$ getconf WORD_BIT
32
$ getconf LONG_BIT
64
4. OS Kernel Architecture 확인
명령어 : uname -m
# 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 : 호스트 이름 변경
$ uname -m
x86_64
5. CPU 정보 확인
명령어 : cat /proc/cpuinfo
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU L5640 @ 2.27GHz
stepping : 2
cpu MHz : 2261.064
cache size : 12288 KB
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae cx8 cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm rep_good aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat dts
bogomips : 4522.12
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU L5640 @ 2.27GHz
stepping : 2
cpu MHz : 2261.064
cache size : 12288 KB
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu de tsc msr pae cx8 cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm rep_good aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat dts
bogomips : 4522.12
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
6. 메모리 정보 확인
명령어 : cat /proc/meminfo
$ cat /proc/meminfo
MemTotal: 3974716 kB
MemFree: 1313904 kB
Buffers: 305336 kB
Cached: 841180 kB
SwapCached: 0 kB
Active: 2047664 kB
Inactive: 385044 kB
Active(anon): 1286288 kB
Inactive(anon): 368 kB
Active(file): 761376 kB
Inactive(file): 384676 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 88 kB
Writeback: 0 kB
AnonPages: 1286180 kB
Mapped: 28540 kB
Shmem: 476 kB
Slab: 152640 kB
SReclaimable: 92192 kB
SUnreclaim: 60448 kB
KernelStack: 2920 kB
PageTables: 16720 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1987356 kB
Committed_AS: 3272724 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 16884 kB
VmallocChunk: 34359721320 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 4194304 kB
DirectMap2M: 0 kB
7. Disk 용량 확인
명령어 : df -h
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.9G 2.3G 7.2G 24% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/xvda2 40G 1.8G 36G 5% /home1
그외 리눅스 기본 명령어 참고 사이트 : http://www.viper.pe.kr/docs/linux_syscmd.html
출처 : http://blog.naver.com/choigohot?Redirect=Log&logNo=40193643022
'Note > UNIX/LINUX 노트' 카테고리의 다른 글
i386, i586, i686, x86의 차이점 (0) | 2013.09.24 |
---|---|
솔라리스 볼륨매니저 개요 (0) | 2013.09.12 |
CPU 아키텍처와 OS (0) | 2013.09.11 |
File System 과 Raw Device 의 차이 (0) | 2013.09.07 |
솔라리스 SVM (Solaris Volume Manager) Soft Partition (0) | 2013.09.07 |