Linux View CPU model, memory size, hard disk space command

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 width:72 Bits

Data width:64 Bits

size:2048 MB//1 2G RAM

Form Factor:dimm

Set:1

Locator:dimm1

Bank Locator:not Specified

Type: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 Bits

Data width:64 Bits

size:2048 MB//1 2G RAM

Form Factor:dimm

Set:1

locator:dimm2

Bank Locator:not Specified

Type: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 Bits

Data width:64 Bits

Size:no Module installed//1 Memory empty Slots

Form Factor:dimm

Set:2

Locator:dimm3

Bank Locator:not Specified

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 Slots

Form Factor:dimm

Set:2

Locator:dimm4

Bank Locator:not Specified

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 Slots

Form Factor:dimm

Set:3

Locator:dimm5

Bank Locator:not Specified

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 Slots

Form Factor:dimm

Set:3

Locator:dimm6

Bank Locator:not Specified

Type:ddr2

Type detail: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

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.