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.
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
How to use cpufetch
The syntax is:
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:
We can display extra information (if available) about how cpufetch tried fetching information:
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:
The first 2 colors are the CPU art color and the next 2 colors are the text colors.
Overall it is one of those small and nicely written tools. I hope you enjoy it as I did. Checkout source code at Github.