View machine configuration information in Linux

Source: Internet
Author: User


# Cat/proc/cpuinfo

Processor starts counting from 0, flags if there is HT instructions and supports hyper-Threading Technology (appendix 1 ).

# Cat/proc/cpuinfo | grep name | cut-F2-D: | uniq-C
1 Intel (r) Pentium (r) Dual CPU e2180 @ 2.00 GHz

View CPU information. Here, only one logical CPU is displayed, and the model is e2180.

# Cat/proc/cpuinfo | grep processor | WC-l 
1

View the number of CPUs

# Cat/proc/cpuinfo | grep physical | uniq-C
# Getconf long_bit

32

It indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit

# Cat/proc/cpuinfo | grep flags | grep "lm" | WC-l
0

If the result is greater than 0, 64-bit computation is supported. lm indicates long mode, and Lm indicates 64-bit computation.

# Cat/proc/cpuinfo | grep-I "model name"
Model name: Intel (r) Pentium (r) Dual CPU e2180 @ 2.00 GHz

# Cat/proc/cpuinfo | grep-I "CPU cores"
# Cat/proc/cpuinfo | grep-I "cache size"

Cache size: 1024 KB

# Dmidecode | gerp "processor information"

View CPU Information

# Dmicode | grep CPU
# Dmidecode | grep proc

# Cat/proc/meminfo

View memory information

# Cat/proc/meminfo | grep-I memtotal
Memtotal: 1035292 KB

# Dmesg | grep HD

View hard disk Information

# Uname-

View the kernel of the current operating system

# Cat/etc/issue | grep Linux

View the release version of the current operating system

# Dmidecode | grep "product name"

View machine information

# Dmesg | grep-I ETH

View Nic Information

Appendix 1: hyper-threading
Hyper-Threading Technology uses special hardware commands to simulate two logic kernels inside a multi-threaded processor into two physical chips, so that a single processor can "enjoy" thread-Level Parallel Computing processor technology. Multithreading technology can effectively enhance the processing capability of the processor in multi-task and multi-thread processing on the operating systems and software supporting multithreading.

 

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.