View linux server hardware configuration

View the number of physical CPU

cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
 
See logical CPU number
cat /proc/cpuinfo |grep "processor"|wc -l
 
View a few core CPU
cat /proc/cpuinfo |grep "cores"|uniq
 
View CPU clock speed
cat /proc/cpuinfo |grep MHz|uniq
 
View cpu type
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
 
Check the operating system kernel information
uname -a
 
View the current operating system release information
cat /etc/issue | grep Linux
 
View a few a few core cpu
cat /proc/cpuinfo | grep physical | uniq -c
 
getconf LONG_BIT
64
(Description of the current running in CPU mode 64bit)
32
(Description of the current CPU running in 32bit mode, but it does not mean that the CPU does not support 64bit)
 
cat / proc / cpuinfo | grep flags | grep 'ch' | wc -l
4
(Result is greater than 0, indicating 64bit support calculation. Lm refers to long mode, lm is supported 64bit)
 
The number of each physical CPU in the Core
cat /proc/cpuinfo | grep "cpu cores" | wc -l
 
View CPU information command
cat /proc/cpuinfo
 
View memory information command
cat /proc/meminfo
 
View hard disk information command
fdisk -l
 
View memory
free -m   

Guess you like

Origin www.cnblogs.com/opma/p/11607366.html