반응형
리눅스 서버를 운영하다보면, 종종 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 |
반응형
'시스템(Linux)' 카테고리의 다른 글
| 리눅스 접속 시 배너를 통한 경고문 (0) | 2023.12.22 |
|---|---|
| logrotate 에 대해 알아보겠습니다. (1) | 2023.10.06 |
| firewall-cmd 에 대해 알아보겠습니다. (0) | 2023.09.30 |
| Linux 및 Unix 에서 많이 사용되는 압축과 압축해제에 대해 알아보겠습니다. (0) | 2023.09.20 |
| 리눅스에서 사용되는 텍스트 편집기 중 하나인 "vi"에 대해 알아보겠습니다. (0) | 2023.09.12 |