How to check installed Linux version

For check linux version installed on your machine, several methods are available. One of the most used commands is lsb_release -a, which provides detailed information about the distribution and its number. Alternatively, for Debian based systems you can view the file /etc/debian_version.

Another approach is to use the command uname -a, which displays kernel and architecture data. To get precise information about the kernel, the command cat /proc/version is very useful because it reveals the exact version of the Linux kernel.

Finally, for Ubuntu users, it is also possible to consult the file /etc/lsb-release to know the Ubuntu version and its description. These commands therefore allow you to clearly identify the version of Linux you are using.

Knowing the version of your Linux distribution is an essential element for managing your system. Whether you’re a novice user or a seasoned system administrator, knowing how to access this information can help you troubleshoot problems, install compatible packages, and keep up with security updates. This article explores different methods to check the version of Linux installed on your machine.

Use the lsb_release command

One of the simplest and most common ways to check the version of your Linux distribution is to use the command lsb_release -a. By opening a terminal and running this command, you will get detailed information about your distribution, including its name, version, and number. Here’s how to do it:


lsb_release -a

This command will display separate lines containing the distribution name, version, and other relevant information, making it a valuable tool for anyone wanting clarification on their system.

Check the /etc/os-release file

Check the /etc/os-release file

Another method is to view the file /etc/os-release, which also contains information about your operating system version. You can do this by running the following command:


cat /etc/os-release

This command will display details with variables specific to your distribution, making it easier to understand your current version.

Access kernel information

If you want to know which version of the Linux kernel you are using, you can do so with the command uname -r. This command only provides you with the kernel version, which can be useful for updates or troubleshooting:


uname -r

Additionally, to get more detailed information, including kernel name and other specifications, you can use:


uname -a

View the /etc/debian_version file for Debian

View the /etc/debian_version file for Debian

For Debian users, you can also check your distribution’s version by viewing the file /etc/debian_version. Just type:


cat /etc/debian_version

This will provide you with the specific version number of your Debian installation.

View information via the /proc/version file

The file /proc/version contains information about the Linux kernel on your machine. Run the following command to view it:


cat /proc/version

This command will display details regarding the kernel version as well as information about the compiler used to build the kernel.

Use system settings on Ubuntu

Use system settings on Ubuntu

For those who prefer a graphical approach, on Ubuntu you can access the System Settings. Open the Settings app, then find the “About” section. There you will find information relating to your version of Ubuntu in an intuitive way.

Conclusion of verification orders

The commands mentioned above provide you with several ways to check the version of your Linux system. Whether you choose the command line or the GUI, knowing which version you are working in is essential for effective management of your environment. Whether for updates, software compatibility or troubleshooting, this information is crucial.

To learn more about the benefits of using Linux for developers, check out this article: The benefits of using Linux for developers.

If you’re looking for information on installing Node.js on Ubuntu, here’s a helpful guide: How to install Node.js on Ubuntu.

Finally, for those who are considering installing a dual boot with Windows, this article will explain how to do it: Install Ubuntu in dual boot with Windows.

Are you interested in learning why some users choose to move to a Linux system like Ubuntu? Read this article: Why switch to a Linux system like Ubuntu?.

For containerization enthusiasts, it is also helpful to understand the benefits of Docker in consultation here: Why use Docker?.