Home > Operation and Maintenance > Linux Operation and Maintenance > How to check the machine hardware configuration under Linux?

How to check the machine hardware configuration under Linux?

coldplay.xixi
Release: 2020-09-05 16:52:59
Original
20491 people have browsed it

How to check the machine hardware configuration under Linux?

How to check the machine hardware configuration under Linux?

How to check the machine hardware configuration under Linux:

1. Check the cpu model

Code:

 more /proc/cpuinfo |baigrep -i model
Copy after login

2. Display how many physical network cards there are.

Code:

 lspci | grep Eth | wc -l
Copy after login

3. Display the motherboard serial number

Code:

 dmidecode | grep 'Serial Number'
Copy after login

4. Check the hard disk model

Code:

 more /proc/scsi/scsi |grep -i model
Copy after login

5. Check the number of physical CPUs

Code:

cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
Copy after login

6. Check the number of logical CPUs

Code:

cat /proc/cpuinfo |grep "processor"|wc -l
Copy after login

7. Check how many cores the CPU has

Code:

cat /proc/cpuinfo |grep "cores"|uniq
Copy after login

Recommended tutorial: "linux video tutorial"

The above is the detailed content of How to check the machine hardware configuration under Linux?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template