- Cheat Sheet and Example is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools






How to Check Hardware and OS Configuration in Linux

Check Hardware

Check Disk Size mount
df -h
Check NFS mount
df -h
Check File System mount ext3, ext4
Check Memory Size free -m
Check Swap Size free -m
Check CPU Sockets cat /proc/cpuinfo | grep "physical id" |sort | uniq | wc -l
Check Network Interfaces ifconfig -a

OS Configuration

Check OS Version cat /etc/redhat-release
cat /etc/issue
Check LANG cat /etc/sysconfig/i18n
echo $LANG
Check Time Zone date
Check DNS host XXXX #internal
host xx.xx.xx.xx
Check NTP ntpq -p grep ^server /etc/ntp.conf
Check SNMP snmpwalk -v 2c localhost -c XXXX sysname
Check Cron grep "" /var/spool/cron/*

Login, User, Group

Check User ls /home
cat /etc/passwd
Check LDAP getent passwd
getent group
Check password ssh localhost
cat /etc/shadow
Check sudoers cat /etc/sudoers |grep -Ev "^#|^$"
sudo ls
su - ; sudo ls
Check SSH cat /etc/ssh/sshd_config |grep -i root PermitRootLogin no

Network Configuration

Check IP ip addr |grep inet
Check Routing netstat -rn
GW ping GW
Check Bonding grep -Ei "speed|interface|status|active" /proc/net/bonding/bond*


Check Service chkconfig --list
Check mail netstat -an |grep :25

os/linux/note/check-configuration.html.txt ยท Last modified: 2021/03/10 by admin

Page Tools