Nextpertise a journal of interesting technical ideas . . .


by Brent Stewart on Tuesday, Apr 13, 2021

LSCPU Output I don’t have to check CPU statistics very often, but occassionally I need to remember details like how many cores I have. The traditional way to get CPU information in Linux is to use lscpu. Here’s the top of the output on my desktop. I’ve truncated the picture - the output is a full page or two of details about your CPU and it’s capabilities. You can also cat /proc/cpu, which has similar info, or list hardware with lshw. lshw provides a lot of output, so you can filter that down with lshw -class CPU. All of these options work, but they vary from cluttered to hard-to-read.

CPUFetch I came across a fun utility to do the same thing, but prettier. CPUfetch doesn’t display the same level of detail, but it pulls the most interesting pieces. It’s actually a little clearer and easier to read because it doesn’t have as much detail. With the pretty logo to the left I assume the name is a nod to Neofetch, a utility I build in to my .bashrc to show on startup and use all the time.

This doesn’t solve a lot of problems, but it is kinda cool. If you agree, check it out on Github. To install, clone the repository and make the executable. I put all my repos in a single directory to organize them, a practice I suggest.

cd ~/git  
git clone  
cd cpufetch  

It will also compile on Android, Windows and MacOS, if you’re into that kinda thing. The readme at github has some other sample pictures and some ways to modify the output. Have fun!

Recent articles related to these tags: Linux
Share this article:    Tweet