View CPU memory information and operating system version information of CentOS

Source: Internet
Author: User
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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.