How to Find Your Linux Distribution Name and Version

If you have just inherited a computer that is running Linux, you will want to know which Linux distribution and version is running on it. The previous owner might have customized it heavily, like coating it with a macOS theme. That makes it not easy to find out the distribution’s name and version from the desktop. Luckily, there are a few ways to find this information from the Terminal. Check them out.

How to Find Out Which Linux Distribution You Are Using

To get started, open a terminal. You can open it with the keyboard shortcut Ctrl + Shift + T or find it from the Applications menu. Once opened, type the following command:

You will see all the information about your Linux distribution. In the example, Manjaro Linux, the 19.0.2 version, is being used, with the codename “Kyria.”

On a Ubuntu machine, this is what you will see:

Alternatively, you can use the lsb_release command. Type the following:

and you will see information about the distribution.

For Ubuntu:

Lastly, if you need a simplified view together with the kernel information, you can use the hostnamectl command:

It will display the operating system (which is the distribution name) and the kernel information.

And for Ubuntu:

That’s it. If you are looking to switch the Linux distribution in your computer, you may want to find out the best Linux distro in 2020or the best one for a beginner.

Image credit: Isolated laptop by DepositPhotos

Damien

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.

Get our stories delivered to your inbox.

Thanks for subscribing! Please check your email for further instructions.

3 comments

  1. Personally I use the GUI program Hardinfo. It also gives me a lot more information. Both tell me I am using Ubuntu Mate 18.04 LTS, but neither tells me it is the Mate edition.

Leave a Comment

Yeah! You've decided to leave a comment. That's fantastic! Check out our comment policy here. Let's have a personal and meaningful conversation.