Gathering system information on Linux – The Basics !

I recently found lsb_release and thought it might be worth sharing on my blog. Although some of the more seasoned Linux users are probably already aware of this command, many other readers could find this to be a useful little tool.

I’m running Ubuntu LTS 18.04, and triple booted it with Fedora 28 and Windows 10 ofcourse(cough!). For a while now, I wondered how to verify that my system is up to date when LTS release updates are issued, for example, from 16.04.3 to 16.04.4. Using inxi -F only shows “Distro: Ubuntu 16.04 xenial”. So, after a bit of searching on the Internet, I found what I really wanted: lsb_release.I have did noticed it during my search on Google that there are pre-installed GUIs for this information, but I’d rather use the CLI way as much as when possible.)

After reading the man page, I found running lsb_release -d -c is exactly what I wanted.
$ lsb_release -d -c


The rest of the commands can be:-

uname -r

uname -a

lsb_release -a

Many times over the years I’ve seen, on forums, where a user needs help with a problem, and is asked to post the results of inxi -F. The output of that command includes the users mac address. So, by running inxi -Fz, the mac address is hidden from public view.

inxi -Fz

Here is a customization trick to change the font colour scheme:

inxi -c 95

Note: 95 is for a terminal, running in X – like xTerm. Running inxi -h will show a short list of choices, from 94 to 99, for different display types in the -c options.

That’s it for now, keep tuned in for more advanced info gathering commands in Linux !

 

 

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

3 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

3 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

8 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

8 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

8 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

9 months ago