cpufetch – awesome CPU architecture info tool for Linux and macOS

AMD cpufetch
Typically we use the lscpu command or /proc/cpuinfo command on Linux to check CPU information. I recently found another simplistic yet fancier CPU architecture fetching tool inspired by neofetch, pfetch or screenfetch. Let us see how to install cpufetch on Linux, macOS, Android, and Windows to fetch CPU details.

cpufetch is awesome CPU architecture info fetching tool for Linux and macOS

We can build and install cpufetch from source on Linux or macOS using the following commands. First clone the repo:
git clone https://github.com/Dr-Noob/cpufetch
Now build it:
cd cpufetch && make
Install it
make install
Here is what we see:

install -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"

Installing cpufetch on Arch Linux using AUR

Try the following commands:

# AUR not ready? Set up AUR and we need
# packages:
# sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/cpufetch-git.git
cd cpufetch-git/
less PKGBUILD
makepkg -si

Android

First install termux application. Next open termux and then run the following commands:
pkg install -y git make clang
Build from source normally on your Android device:
git clone https://github.com/Dr-Noob/cpufetch
cd cpufetch
make
make install

How to use cpufetch

The syntax is:
cpufetch
cpufetch [option]

Options

The default style is fancy. But we can switch to retro or legacy style as follows:
cpufetch -s retro
cpufetch -s legacy

We can use bash for loop as follows to test styles:

for s in fancy retro legacy
do
    clear
    cpufetch -s "$s"
    sleep 3
done
My AMD server:
cpufetch

We can display extra information (if available) about how cpufetch tried fetching information:
cpufetch -v
By default, cpufetch uses the system color scheme but we can the color scheme too:
cpufetch --color 239,90,45:210,200,200:100,200,45:0,200,200
We need to set 4 colorsin RGB with the format:
R,G,B:R,G,B:....
The first 2 colors are the CPU art color and the next 2 colors are the text colors.

Summing up

Overall it is one of those small and nicely written tools. I hope you enjoy it as I did. Checkout source code at Github.

This entry is 4 of 4 in the Linux/UNIX System Info Apps series. Keep reading the rest of the series:
  1. Display Awesome Linux Logo With Basic Hardware Info Using screenfetch/linux_logo
  2. neofetch: Awesome system info bash script for Linux/Unix
  3. pfetch Linux and Unix hardware information tool
  4. cpufetch – awesome CPU architecture info tool for Linux/macOS/Android

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • Skye Romero Apr 29, 2021 @ 22:56

    Nice tools. I love simple and easy to use CLI software.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum