Check the CPU, memory, operating system version, and other information of the Linux server, and summarize common commands for future reference. 1. view the CPU model (8 logical CPUs) [[root @ mail ~] # Cat/proc/cpuinfo | grep & quot; name & quot; | cut-f2-d: | uniq-c8Intel (R) Xeon (R) CPU & nbsp
Check the CPU, memory, operating system version, and other information of the Linux server, and summarize common commands for future reference.
1. view the CPU model (8 logical CPUs)
[[Root @ mail ~] # Cat/proc/cpuinfo | grep "name" | cut-f2-d: | uniq-c
8 Intel (R) Xeon (R) CPU E5506 @ 2.13 GHz
2. view the number of physical CPUs (two 4-core CPUs)
[Root @ mail ~] # Cat/proc/cpuinfo | grep "physical" | sort | uniq-c
8 address sizes: 40 bits physical, 48 bits virtual
4 physical id: 0
4 physical id: 1
3. check the number of places in which the CPU runs.
[Root @ mail ~] # Getconf LONG_BIT
64
4. the following result is greater than 0, indicating that the 64-bit operating system is supported.
[Root @ mail ~] # Cat/proc/cpuinfo | grep flags | grep 'LM '| wc-l
8
5. view the physical memory size of the system.
[Root @ mail ~] # Free
Total used free shared buffers cached
Mem: 8168144 7387980 780164 0 689856 4014308
-/+ Buffers/cache: 2683816 5484328
Swap: 4192924 24424 4168500
6. View memory details
[Root @ mail ~] # Cat/proc/cpuinfo
7. check which release version is installed on the server
[Root @ mail ~] # Cat/etc/redhat-release
CentOS release 5.5 (Final)
8. check whether the OS version is 64-bit or 32-bit.
[Root @ mail ~] # Uname-
Linux mail 2.6.18-164. el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
9. View server hardware information
[Root @ DB145] # dmidecode | grep Vendor processor Vendor
Vendor: Dell Inc.
[Root @ DB145] # dmidecode | grep Product server model
Product Name: PowerEdge R610
Product Name: 0RP59R
This article from the "simple dream catcher" blog, please be sure to keep this source http://sfzhang88.blog.51cto.com/4995876/875972