TranslateProject/sources/tech/20210407 Show CPU Details Beautifully in Linux Terminal With CPUFetch.md
DarkSun b990dba931 选题[tech]: 20210407 Show CPU Details Beautifully in Linux Terminal With CPUFetch
sources/tech/20210407 Show CPU Details Beautifully in Linux Terminal With CPUFetch.md
2021-04-07 05:03:07 +08:00

4.7 KiB
Raw Blame History

Show CPU Details Beautifully in Linux Terminal With CPUFetch

There are ways to check CPU information on Linux. Probably the most common is the lscpu command that gives you plenty of information about all the CPU cores on your system.

lscpu command output

You may find CPU information there without installing any additional packages. That works of course. However, I recently stumbled upon a new tool that displays the CPU details in Linux in a beautiful manner.

The ASCII art of the processor manufacturer makes it look cool.

This looks beautiful, isnt it? This is similar to Neoftech or Screenfetch tools that show the system information in beautiful ASCII art in Linux. Similar to those tools, you can use CPUFetch if you are showcasing your desktop screenshot.

The tool outputs the ASCII art of the processor manufacturer, its name, microarchitecture, frequency, cores, threads, peak performance, cache sizes, Advanced Vector Extensions, and more.

You can use custom colors apart from a few themes it provides. This gives you additional degree of freedom when you are ricing your desktop and want to color match all the elements on your Linux setup.

Installing CPUFetch on Linux

Unfortunately, CPUFetch is rather new, and it is not included in your distributions repository. It doesnt even provide ready to use DEB/RPM binaries, PPAs, Snap or Flatpak packages.

Arch Linux users can find it in AUR but for others, the only way forward here is to build from source code.

Dont worry. Installation as well as removal is not that complicated. Let me show you the steps.

I am using Ubuntu and you would need to install Git on Ubuntu first. Some other distributions come preinstalled with it, if not use your distributions package manager to install it.

Now, clone the Git repository wherever you want. Home directory is fine as well.

git clone https://github.com/Dr-Noob/cpufetch

Switch to the directory you just cloned:

cd cpufetch

Youll see a make file here. Use it to compile the code.

make

CPUFetch Installation

Now youll see a new executable file named cpufetch. You run this executable to display the CPU information in the terminal.

./cpufetch

This is what it showed for my system. AMD logo looks a lot cooler in ASCII, dont you think?

How do you remove Cpufetch? Its pretty simple. When you compiled the code, it produced just one file and that too in the same directory as the rest of the code.

So, to remove CPUFetch from your system, simply remove its entire folder. You know how to remove a directory in Linux terminal, dont you? Come out of the cpufetch directory and use the rm command:

rm -rf cpufetch

That was simple, thankfully because removing software installed from source code could be really tricky at times.

Back to cpufetch. I think its a utility for those who like to show off their desktop screenshots in various Linux group. Since we have Neofetch for the distribution and CPUFetch for CPU, I wonder if we could have a GPU fetch with ASCII art of Nvidia as well :)


via: https://itsfoss.com/cpufetch/

作者:Abhishek Prakash 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出