Linux
Linux 하드웨어 상태 확인
2swan
2025. 1. 14. 16:06
리눅스 종류 및 리눅스 버전 확인
# grep . /etc/*-release
CPU 코어 전체 갯수 확인
# grep -c processor /proc/cpuinfo
HostName 확인
# hostname
Serial Number 확인
# dmidecode | grep 'Serial Number' | head -1
메모리 용량 확인
# cat /proc/meminfo | grep MemTotal
HDD 용량 또는 갯수 확인
# fdisk -l | egrep 'Disk.*bytes' | awk '{ sub(/,/,""); sum +=$5;print $1" "$2" "$3" "$4" "$5" "$6 } END { print "total: " sum/1024/1024/1024 " GB" }'
서비스 모델 확인
# dmidecode -s system-product-name