OS Check Commands¶
Basic Check Commands¶
# Check detailed OS information
cat /etc/os-release
# Kernel information
uname -a
# Check architecture
arch
By Distribution¶
Ubuntu/Debian¶
cat /etc/lsb-release
lsb_release -a
CentOS/RHEL¶
cat /etc/redhat-release
SUSE¶
cat /etc/SuSE-release
System Information Check¶
# System uptime
uptime
# Memory usage
free -h
# Disk usage
df -h
# CPU information
cat /proc/cpuinfo | grep "model name" | head -1