How to Easily Identify Your Linux Distribution (GUI & CLI)
When you first start using Linux, you may find yourself a little lost or confused with the many Linux distributions available, and in this case, it is always important to know which version of Linux you are using. How do you know? It’s pretty simple.
If there is a desktop interface, the easiest way to find out what Linux distribution is installed is to open the system preferences and find the “About” section. From the command line interface, you can use various commands to get the information you need.
In this article, I will show you the ways to find which Linux distribution you are using. You will get details such as the kernel, the system’s architecture, and the package manager used in your Linux distribution.
If you need help with Linux, I’ve got something that can help you right away!
Download my free Linux commands cheat sheet – it’s a quick reference guide with all the essential commands you’ll need to get things done on your system. Click here to get it for free!
How to find your current Linux OS using the GUI
To visually identify your current Linux OS with the GUI, go to the system section in the system’s menu bar. Then, select the option for system information. This can be expressed as “About this system”, “System info”, “Information” and so on.

In my case, I will use Linux Mint for this example. The system information is located in the “System Info” button in this distribution. But this may vary depending on the system and desktop environment you have.
Grab This Cheat Sheet!
I've compiled the must-know commands in a simple PDF for quick reference.
Download now

After choosing this option, a window will open. It will show a summary of the system’s info. In it, you can find:
- OS name & version: Indicates the name and version of the Linux distribution installed.
That’s generally the most important part that you need to follow tutorials and online documentation. - Kernel version: Indicates the version of the kernel installed on the system.
Depending on your distribution, some other information may be listed here, such as the desktop environment (name & version), the architecture, and some details about the hardware you are using.
How to check your current Linux OS using the CLI
If you don’t have a desktop interface or can’t find this information in the system settings, you can always use the terminal to get something similar. The terminal is built into all Linux operating systems, so you will have no problem using it.
With a desktop interface, you can generally open the terminal using CTRL + T and it will open a Windows like this:
Grab This Cheat Sheet!
I've compiled the must-know commands in a simple PDF for quick reference.
Download now

On a server or if you use a remote access protocol like SSH, you can open a session and follow the same steps listed below.
Members get an ad-free version of every guide, plus exclusive project support.
Join the Community | Sign In
After that, you can use this command, and you will receive an output with all the information related to the system:sudo cat /etc/*-release

In this output, you can check the following most relevant information:
- Distribution Name: is the name of the installed distribution.
- Distribution Version: this is the version of the installed distribution and in some cases, it also indicates if it is LTS (Long-Term Support).
- OS Website: The web page of the installed distribution. Useful for asking for support in case of need.
- Codename: The name of the current version used in the installed OS. It is something common to see in some specific versions of a distribution.
Note: There are other commands you can use to get more information, such as hostnamectl and lsb_release -a. But, those commands may not be available in every distribution, especially on Arch, Gentoo, and Slackware.
Tip: Command lines can be a pain to memorize. I put the essential Linux commands on a printable cheat sheet so you don't have to keep googling them. You can grab the PDF here if you want to save some time.
Grab This Cheat Sheet!
I've compiled the must-know commands in a simple PDF for quick reference.
Download now
Stuck on this project? Ask me or other Pi users in the RaspberryTips Community. We help each other out and you'll get answers quick. Join and fix it together.
Related Questions
How can I check the system architecture of my Linux OS?
In Linux, you can find and view the architecture of your Linux OS using any of these commands:uname -m

Knowing the system architecture is useful to know what kind of packages or applications you can install. On Linux, the name of the type of system architecture differs from Windows, where it is common to only see 32-bit and 64-bit.
Here, Linux will use and display the term “i386” or “x86” for expressing an OS using an architecture of 32-bit, and “x86_64” or “amd64” for systems of 64-bit.
How do I find the kernel version of my Linux distribution?
To find the current kernel version that you have installed on your Linux System, you can use the following command:uname -r

Grab This Cheat Sheet!
I've compiled the must-know commands in a simple PDF for quick reference.
Download now
This will return an output with the current version of the kernel installed.
Knowing the kernel version is useful for troubleshooting issues or bugs related to the kernel. So, a quick check will always be helpful for simple troubleshooting any issue.
How do I determine which package manager my system uses?
To know the type of package manager you have integrated into your Linux OS, you must first identify the existing package managers that could be included in your OS. You can check it using this table:
You might also like: Pi5 vs. Pi4: I tested them, here's the result
| Distribution | Package Manager | Command |
| Debian-Ubuntu-Based OS | APT | apt |
| Arch-Based OS | PACMAC | yum |
| Fedora | RPM | rpm |
| CentOS-RedHat | Yellow dog Updater, Modified (Yum) | yum |
| Gentoo | Portage | emerge |
| OpenSUSE | ZYpp | zypper |
With this in mind, you can check which one is in your system. Use a simple test. Try all the commands. If it’s wrong, the command will say it doesn’t exist. If it’s right, you will be asked for more options.

Whenever you're ready, here are other ways I can help you:
Master Linux Commands: Overwhelmed with Linux commands? This book is your essential guide to mastering the terminal. It includes practical tips, real-world examples, and a bonus cheat sheet to keep by your side.
The RaspberryTips Community: Need help with Linux or want to chat with people who actually get it? Join the RaspberryTips Community and get access to private forums, exclusive lessons, and direct support.
You can also find all my recommendations for tools and hardware on this page.
