본문 바로가기
시스템(Linux)

리눅스에서 CPU, MEMORY, 커널 정보 확인방법에 대해 알아보겠습니다.

by forward error correction Circle 2023. 10. 5.
반응형

리눅스 서버를 운영하다보면, 종종 CPU, MEMORY, 커널 정보에 대해 확인이 필요한 경우가 있습니다.

확인하는 방법에 대해 알아보겠습니다.

 

Ⅰ. 리눅스에서 CPU 정보 확인

1) CPU 정보 확인

[root@feccle] # cat /proc/cpuinfo

2)  CPU 코어 전체 개수 확인

[root@feccle] # grep -c processor /proc/cpuinfo

3) 물리 CPU 수 확인

[root@feccle] #  grep "physical id" /proc/cpuinfo | sort -u | wc -l

4) CPU당 물리 코어 수 확인

[root@feccle] # grep "cpu cores" /proc/cpuinfo | tail -1

Ⅱ. 리눅스 메모리 정보확인

[root@feccle] # cat /proc/meminfo

Ⅲ. 리눅스 버전 확인

[root@feccle] # cat /etc/issue

or

[root@feccle]  cat /etc/redhat-release

Ⅳ. 리눅스 커널 버전 확인

[root@feccle] # cat /proc/version

Ⅴ . OS 커널 비트수(Kernel Bits)  확인

[root@feccle] # getconf WORD_BIT

Ⅵ. uname(unix name) 명령으로 OS Kernel Architecture  확인하기

[root@feccle] # uname -a
uname (옵션) 설명
 -a (--all) print  all  information
-i (--hardware-platform)  print the hardware platform or "unknown"
 -m (--machine) print the machine hardware name
 -n (--nodename)  print the network node hostname
 -p (--processor) print the processor type or "unknown"
 -r (--kernel-release)  print the kernel release
-s (--kernel-name)   print the kernel name
 -v (--kernel-version)   print the kernel version

 

반응형