In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install and use Cpufetch in Linux. It is very detailed and has a certain reference value. Friends who are interested must read it!
Cpufetch is a powerful CPU architecture information acquisition tool that supports x86, x86x64 (Intel and AMD), and CPU for ARM architecture. Cpufetch supports running on Linux, Windows, and macOS operating systems, but we recommend that the majority of users install and use Cpufetch in Linux.
System environment
Centos8
Install cpufetch in Centos8
Let's use source code to compile and install cpufetch. Before installation, you need to install the dependent packages git, make, gcc:
[root@localhost ~] # yum-y install git make gcc gcc-c++
Download the cpufetch source package from github:
[root@localhost] # git clone https://github.com/Dr-Noob/cpufetchCloning into 'cpufetch'...remote: Enumerating objects: 274, done.remote: Counting objects: 100% (274x274), done.remote: Compressing objects: 100% (166x166), done.remote: Total 1280 (delta 108), reused 208 (delta 108), pack-reused 1006Receiving objects: 100% (1280 KiB), 635.25 KiB | 538.00 KiB/s, done.Resolving deltas: 100% (854), done.
Go to the cpufetch directory and compile the installation:
[root@localhost] # cd cpufetch/ [root@localhost cpufetch] # make & & make installgcc-Wall-Wextra-Werror-pedantic-fstack-protector-all-pedantic-std=c99-DARCH_X86-Wfloat-equal-Wshadow-Wpointer-arith src/common/main.c src/common/cpu.c src/common/udev.c src/common/printer.c src/common/args.c src/common/global.c src/x86/cpuid.c src/x86/apic.c src/x86/cpuid_asm.c src / x86/uarch.c-o cpufetchinstall-Dm755 "cpufetch"/ usr/bin/cpufetch" install-Dm644 "LICENSE" / usr/share/licenses/cpufetch-git/LICENSE "install-Dm644" cpufetch.8 "" / usr/share/man/man8/cpufetch.8.gz "
How to use cpufetch
The syntax is as follows:
Cpufetchcpufetch [option] option description
The default output style is fancy. But we add the-s option to switch to the legacy or retro style:
Under # cpufetch-s retro# cpufetch-s legacy, you can use a loop to display three styles: [root@localhost ~] # vi cpufetchblocks loop.shou styles bind Binh for s in fancy retro legacydo clear cpufetch-s "$s" sleep 1done
Using the-v option, you can display additional information, or if any:
# cpufetch-v
Use the-d option to print information for debugging:
[root@localhost] # cpufetch-dcpufetch v0.96 (x8634 build) Intel (R) Core (TM) i7-8700 CPU @ 3.20GHz-Hypervisor: VMware- Max standard level: 0x00000016-Max extended level: 0x80000008-CPUID dump: 0x000906EA
By default, cpufetch uses a system color scheme, but we can also customize the color scheme and three predefined color schemes:
# using the intel color scheme [root@localhost] # cpufetch-c intel# using the amd color scheme [root@localhost] # cpufetch-c amd# using the arm color scheme [root@localhost] # cpufetch-c arm# using a custom color scheme cpufetch-- color 70, 130, 180, 180, 230, 230, 250, 250, 100, 100, 250, 250, 250, 100, 100, 250, 250, 250, 100, 100, 250, 250, 250, 250, 100, 250, 250, 250, 100, 250, 250, 250, 100, 100, 250, 250, 250, 100, 100, 100, 250, 250, 250, 250, 250, 250, 100, 100, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 180, 180, 180, 230, 250, 100, 100, 100, 100, 100, 100, 100, 100, 250, 180, 180,
We need to enter the RGB value for the color using the following format and set 4 colors:
R,G,B:R,G,B:R,G,B:R,G,B
The first two colors are the LOGO colors of CPU, and the last two colors are text colors.
The above is all the contents of the article "how to install and use Cpufetch in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.