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:
cat /etc/*-release
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:
lsb_release -a
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:
hostnamectl
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
Our latest tutorials delivered straight to your inbox