Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view hardware information such as CPU under Linux

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you how to view hardware information such as CPU under Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

# cat / proc/cpuinfo | grep name | cut-f2-d: | uniq-c8 Intel (R) Xeon (R) CPU E5410 @ 2.33GHz

(see that there are 8 logical CPU and also know the CPU model)

# cat / proc/cpuinfo | grep physical | uniq-c4 physical id: 04 physical id: 1

(which means it's actually two 4-core CPU)

# getconf LONG_BIT32

(indicates that CPU is running in 32bit mode, but it does not mean that CPU does not support 64bit)

# cat / proc/cpuinfo | grep flags | grep'lm'| wc-L8

(the result is greater than 0, indicating that 64bit computing is supported. Lm refers to long mode, while supporting lm means 64bit)

Take a full look at the details of cpu, but most of us don't care about it.

# dmidecode | grep 'Processor Information' View memory information # cat / proc/meminfo# uname-aLinux euis1 2.6.9-55.ELsmp # 1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

(view current operating system kernel information)

# cat / etc/issue | grep LinuxRed Hat Enterprise Linux AS release 4 (Nahant Update 5)

(view current operating system release information)

Check the machine model

# dmidecode | grep "Product Name"

View network card information

# dmesg | grep-I eth Thank you for reading! This is the end of this article on "how to view hardware information such as CPU under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report