If you had Linux pre-installed when buying a laptop or a desktop, and you are interested in knowing Linux version and distribution name, this article is specially written for you to find out the Linux distro used in your laptop.
There are several ways to find out the Linux version that you are using on your computer, as well as the name of your distribution and the kernel version, and additional information that you might want to keep in mind or at your fingertips.
Therefore, in this simple but important guide for new Linux users, I’ll show you how. Doing this task may seem a relatively simple task, but having a good knowledge of your system is always the recommended practice for a number of reasons, including installing and running the appropriate packages for your Linux version, making it easy to report errors in combination with much more.
How to know the Linux Distribution and Version
We will use the uname command, which is used to print your system information in Linux, such as the kernel version and release name, the network node name, the hardware name, the processor architecture, the hardware platform and the operating system.
In the previous command, the -o option displays the name of the operating system and-r prints the release version of the kernel.
You can also use the -a option with the uname command to print all system information, as shown:
Then we will use the /proc file system, which stores information about processes and other system information, it is mapped to /proc and mounted at boot time.
You will find the following information:
The version of Linux (kernel) that you are running: Linux version 4.9.36-x86_64
The name of the user who compiled your kernel: ([email protected])
The version of the GCC compiler used to build the kernel: gcc version 4.9.2
Kernel Type: # 1 SMP.
Date and time the kernel was created: Thu Jul 19 13:05:32 UTC 2017
Find the name and version of the Linux distribution
The best way to determine the name of the Linux distribution and the version of the version is to use the cat /etc/os-release command, which works in almost the entire Linux system. For example:
In this article, we provided a short and simple guide designed to help a new Linux user learn the version of the operating system and the main data in which they work, as well as find out their name and version of the Linux distribution from the command line.
Perhaps it can also be useful for advanced users once or twice. Finally, to contact us for any help or suggestions that you want to offer, use the comment form.