# Cat/proc/cpuinfo
Processor starts counting from 0, flags if there is HT instructions and supports hyper-Threading Technology (appendix 1 ).
# Cat/proc/cpuinfo | grep name | cut-F2-D: | uniq-C
1 Intel (r) Pentium (r) Dual CPU e2180 @ 2.00 GHz
View CPU information. Here, only one logical CPU is displayed, and the model is e2180.
# Cat/proc/cpuinfo | grep processor | WC-l
1
View the number of CPUs
# Cat/proc/cpuinfo | grep physical | uniq-C
# Getconf long_bit
32
It indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit
# Cat/proc/cpuinfo | grep flags | grep "lm" | WC-l
0
If the result is greater than 0, 64-bit computation is supported. lm indicates long mode, and Lm indicates 64-bit computation.
# Cat/proc/cpuinfo | grep-I "model name"
Model name: Intel (r) Pentium (r) Dual CPU e2180 @ 2.00 GHz
# Cat/proc/cpuinfo | grep-I "CPU cores"
# Cat/proc/cpuinfo | grep-I "cache size"
Cache size: 1024 KB
# Dmidecode | gerp "processor information"
View CPU Information
# Dmicode | grep CPU
# Dmidecode | grep proc
# Cat/proc/meminfo
View memory information
# Cat/proc/meminfo | grep-I memtotal
Memtotal: 1035292 KB
# Dmesg | grep HD
View hard disk Information
# Uname-
View the kernel of the current operating system
# Cat/etc/issue | grep Linux
View the release version of the current operating system
# Dmidecode | grep "product name"
View machine information
# Dmesg | grep-I ETH
View Nic Information
Appendix 1: hyper-threading
Hyper-Threading Technology uses special hardware commands to simulate two logic kernels inside a multi-threaded processor into two physical chips, so that a single processor can "enjoy" thread-Level Parallel Computing processor technology. Multithreading technology can effectively enhance the processing capability of the processor in multi-task and multi-thread processing on the operating systems and software supporting multithreading.