One: View CPU
More/proc/cpuinfo | grep "model name"
grep "model name"/proc/cpuinfo
If you feel the need to see more comfortable
grep "model Name"/proc/cpuinfo | Cut-f2-d:
Two: View memory
grep memtotal/proc/meminfo
grep Memtotal/proc/meminfo | Cut-f2-d:
Free-m |grep "Mem" | awk ' {print $} '
Three: Check whether the CPU is 32-bit or 64-bit
Getconf Long_bit
Four: Viewing the default language
Echo $LANG $LANGUAGE
V: View kernel version
Uname-r
Uname-a
VI: View current time
Date
Seven: View hard disks and partitions
Df-h
Fdisk-l
You can see all the space occupied
Du/etc-sh
You can see the size of this directory
11: 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 $} ' |cut-c 6-
Ifconfig | grep ' inet addr: ' | Grep-v ' 127.0.0.1 ' | Cut-d:-f2 | awk ' {print '} '
View Gateway
Cat/etc/sysconfig/network
View DNS
Cat/etc/resolv.conf
Linux System hardware Configuration view method