Https://www.cnblogs.com/sunss/archive/2010/09/09/1822299.html
To test the hardware information of the machine:
# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c
8 Intel (R) Xeon (r) CPU E5410
View CPU Information (model) (see 8 logical CPUs, also known CPU model)
# Cat/proc/cpuinfo | grep Physical | Uniq-c
4 Physical ID : 0
4 Physical ID
(It's actually two 4-core CPUs)
# getconf Long_bit
32
(indicates that the current CPU is running in 32bit mode, but does not mean CPU does not support 64bit)
# Cat/proc/cpuinfo | grep Flags | grep ' LM ' | Wc-l
(The result is greater than 0, which indicates support for 64bit calculation. LM refers to long mode, support LM is 64bit)
See the full details of the CPU, but most of us do not care about it.
Viewing memory information
# Cat/proc/meminfo
# uname-a
Linux euis1 2.6.9-55.elsmp #1 SMP Fri Apr 17:03:35 EDT 2007 i686 i686 i386
(view current operating system kernel information)
# Cat/etc/issue | grep Linux
(View current operating system release information)
View Machine Model
# Dmidecode | grep "Product Name"
View Network card information
# DMESG | Grep-i ETH