This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12700|Reply: 0

[linux] In Linux, you can view hardware information such as CPU information and machine model

[Copy link]
Posted on 1/3/2015 4:59:31 PM | | |
Hardware information for testing machines:

View CPU Information (Model)
# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
      8  Intel(R) Xeon(R) CPU            E5410   @ 2.33GHz
(I saw that there are 8 logical CPUs, and I also know the CPU model)

# cat /proc/cpuinfo | grep physical | uniq -c
      4 physical id      : 0
      4 physical id      : 1
(Explain that it is actually two 4-core CPUs)

# getconf LONG_BIT
   32
(It means that the current CPU is running in 32-bit mode, but it does not mean that the CPU does not support 64-bit)

# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
   8
(The result is greater than 0, indicating that it supports 64-bit computing. lm refers to long mode, and lm is 64bit)

A full look at the CPU details, but most of us just don't care.
# dmidecode | grep 'Processor Information'

View memory information
# cat /proc/meminfo

# uname -a
Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
(See current action.)systemKernel information)

# cat /etc/issue | grepLinux
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
(View current OS release information)

View machine models
# dmidecode | grep "Product Name"  

View the network card information
# dmesg | grep -i eth





Previous:Android Documentation Smali Development Explained [PDF]
Next:I invested 20,000 yuan to develop English learning software. Now looking for a partner.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com