Often to see the Linux server CPU, memory, operating system version and other information, summarize the commonly used commands
1. View CPU model (32 logical CPUs)
[Email protected] ~]# cat/proc/cpuinfo |grep "name" |cut-f2-d: |uniq-c
Intel (R) Xeon (r) CPU e5-4620 v2 @ 2.60GHz
2. View the number of physical CPUs (two 16-core CPUs)
[Email protected] ~]# cat/proc/cpuinfo | grep "Physical" | sort |uniq-c
Address sizes: physical, bits virtual
Physical ID: 0
Physical ID: 1
3. See how many bit patterns the CPU is running under
[Email protected] ~]# getconf long_bit
64
4. The following results are greater than 0, indicating support for 64-bit operating systems
[Email protected] ~]# cat/proc/cpuinfo | grep flags | grep ' LM ' | wc-l
32
5. View the size of the system's physical memory
[Email protected] ~]# free-m
Total used free shared buffers Cached
mem:32051 31806 244 0 58 30654
-/+ buffers/cache:1093 30958
swap:15999 0 15999
6. View memory Details
[Email protected] ~]# cat/proc/cpuinfo
processor:0
Vendor_id:genuineintel
CPU Family:6
model:62
Model Name:intel (R) Xeon (r) CPU e5-4620 v2 @ 2.60GHz
Stepping:4
microcode:1064
CPU mhz:2600.065
Cache size:20480 KB
Physical id:0
Siblings:16
Core id:0
CPU Cores:8
apicid:0
Initial apicid:0
Fpu:yes
Fpu_exception:yes
CPUID level:13
Wp:yes
FLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 clflush DTS ACPI MMX FXSR SSE SS E2 SS HT TM PBE syscall NX PDPE1GB rdtscp lm constant_tsc Arch_perfmon pebs BTS rep_good xtopology nonstop_tsc aperfmperf PNI PCLMULQDQ dtes64 Monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid DCA sse4_1 sse4_2 x2apic popcnt tsc_deadline _timer AES Xsave AVX f16c Rdrand lahf_lm ida Arat xsaveopt PLN pts DTS Tpr_shadow vnmi flexpriority ept vpid fsgsbase SMEP Erms
bogomips:5200.13
Clflush size:64
7. See which release version the server is installing
[Email protected] ~]# cat/etc/redhat-release
CentOS Release 6.6 (Final)
8. Check whether the OS version is 64-bit or 32-bit
[Email protected] ~]# uname-r
2.6.32-504.el6.x86_64
[Email protected] ~]# uname-a
Linux nginx.yc.jzhnm.com 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 04:27:16 UTC x86_64 x86_64 x86_64 gnu/linux
9. View hardware information for the server
[Email protected] ~]# dmidecode |grep Vendor # processor manufacturer
Vendor:dell INC.
[Email protected] ~]# dmidecode |grep product # Server model
Product Name: PowerEdge R820
Product NAME:0JC2W3
This article is from the "Linux operations self-cultivation" blog, please be sure to keep this source http://ywliyq.blog.51cto.com/11433965/1765787
View the CPU, memory, and operating system version information for the CentOS server