Record Centos commands on 192.168.0.148. view cpu grep "model name"/proc/cpuinfo 2. check whether the cpu is 32-bit or 64-bit getconf LONG_BIT 3. view the current linux version cat/etc/redhat-release ~~~ CentOS release 5.8 (Final )~~~ 4. view kernel version uname-r uname-a 5. view memory grep MemTotal/proc/meminfo | cut-f2-d: free-m | grep "Mem" | awk '{print $2}' 6. view the hard disk and partition df-h fdisk-l. You can also view the partition du-sh to see all occupied space du/etc-sh and the size of the/etc directory 7. view the installed software package view the software package cat-n/root/install installed during system installation. logmore/root/install. log | wc-l 8. view the keyboard layout cat/etc/sysconfig/keyboardcat/etc/sysconfig/keyboard | grep KEYTABLE | cut-f2-d = 9. query View selinux sestatussestatus | cut-f2-d: cat/etc/sysconfig/selinux 10. View ip, mac address in the ifcfg-eth0 file you can see mac, Gateway and other information. Ifconfig cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep IPADDR cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep IPADDR | cut-f2-d = ifconfig eth0 | grep "inet addr: "| awk '{print $2}' | cut-c 6-ifconfig | grep 'inet addr: '| grep-V' 127. 0.0.1 '| cut-d:-f2 | awk' {print $1} 'view gateway cat/etc/sysconfig/network view dns cat/etc/resolv. conf view default language echo $ LANG $ LANGUAGEcat/etc/sysconfig/i18n 11. check the time zone and whether the UTC time cat/etc/sysconfig/clock 12 is used. check the host name cat/etc/sysconfig/network. Modifying the host name is the best way to modify the host file. 13. view the boot time uptime 14. view the motherboard information dmidecode | more