In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you linux's way to view CPU information, the code is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Check how many CPU there are.
More / proc/cpuinfo | grep "physical id" | uniq | wc-l
How many cores is each cpu (assuming the cpu configuration is the same)
More / proc/cpuinfo | grep "physical id" | grep "0" | wc-lcat / proc/cpuinfo | grep processor
1. Check the number of physical CPU
# cat / proc/cpuinfo | grep "physical id" | sort | uniq | wc-l
two。 Check the number of logical CPU
# cat / proc/cpuinfo | grep "processor" | wc-l
3. Check how many cores CPU is.
# cat / proc/cpuinfo | grep "cores" | uniq
4. Check the main frequency of CPU
# cat / proc/cpuinfo | grep MHz | uniq# 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)
# 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)
The above is how linux views CPU information. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.