Linux View CPU model, memory size, hard disk Space Command (detailed) _linux

Source: Internet
Author: User

1 View CPU

1.1 View the number of CPUs

# Cat/proc/cpuinfo | grep "Physical ID" | Uniq | Wc-l

2 **uniq command: delete duplicate rows; wc–l command: Count rows * *

1.2 View the number of CPU cores

# Cat/proc/cpuinfo | grep "CPU Cores" | Uniq
CPU Cores:4

1.3 View CPU Model

# Cat/proc/cpuinfo | grep ' model name ' |uniq
Model Name:intel (R) Xeon (r) CPU E5630 @ 2.53GHz

Summary: the server has 2 4 core CPUs, model Intel (R) Xeon (r) CPU E5630 @ 2.53GHz

2 View Memory

2.1 View Total Memory

#cat/proc/meminfo | grep memtotal
memtotal:32941268 KB//Memory 32G

2.2 View the number of memory strips

This section is quoted from Sina blog "Linux View memory Number"

View the original:

# Dmidecode |grep-a16 "Memory device$" Memory Device Array handle:0x1000 Error information Handle:not provided total W idth:72 bits Data width:64 bits size:2048 MB//1 2G memory Form factor:dimm set:1 locator:dimm1 Bank locator:not specifi Ed type:ddr2 Type detail:synchronous speed:667 MHz manufacturer:7f7f7f7f7f510000 serial number:0403e324 Asset tag:45  0721 Part Number:72t256220hr3sa--Memory Device Array handle:0x1000 Error information Handle:not provided total Width: Per bits Data width:64 bits size:2048 MB//1 2G memory Form factor:dimm set:1 locator:dimm2 Bank locator:not Specified Ty
PE:DDR2 Type detail:synchronous speed:667 MHz manufacturer:7f7f7f7f7f510000 serial number:0403e324 Asset tag:450721 Part Number:72t256220hr3sa--Memory Device Array handle:0x1000 Error information Handle:not provided total width:72 b Its Data width:64 bits size:no Module installed//1 memory empty slot Form Factor:dimm set:2 locator:dimm3 Bank locator:not speci fied TYPE:DDR2 Type DetAil:synchronous speed:unknown manufacturer:serial number:asset tag:part Number:--Memory Device Array handle:0x1000 Error information Handle:not provided total width:72 bits Data width:64 bits size:no Module installed//1 memory empty slot Form F Actor:dimm set:2 locator:dimm4 Bank locator:not Specified type:ddr2 Type detail:synchronous speed:unknown Manufactu Rer:serial number:asset Tag:part Number:--Memory Device Array handle:0x1000 Error information Handle:not provided T Otal width:72 bits Data width:64 bits size:no Module installed//1 memory empty slots Form Factor:dimm set:3 locator:dimm5 Bank Lo Cator:not Specified type:ddr2 Type detail:synchronous speed:unknown manufacturer:serial number:asset tag:part Numbe R:--Memory Device Array handle:0x1000 Error information handle:not provided total width:72 bits Data width:64 bits S Ize:no Module installed//1 memory empty slot Form Factor:dimm set:3 locator:dimm6 Bank locator:not Specified type:ddr2 Type deta Il:synchronous Speed:uNknown manufacturer:serial number:asset tag:part Number: 

Summary: This server has two 2G of memory, 4 slots Free

3 View the hard drive

3.1 View the size of the hard disk

# Fdisk-l | grep Disk

disk/dev/cciss/c0d0:146.7 GB, 146778685440 bytes

Summary: hard disk size 146.7G, that is, the factory trademark called 160G

The above is a small series of Linux for everyone to see the CPU model, memory size, hard disk space commands (detailed) the entire content, I hope that we support cloud Habitat Community ~

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.