- How to Find Out What Version of Linux You Are Running
- Find Out Linux Kernel Version
- Find Out Linux Distribution Name and Release Version
- If You Appreciate What We Do Here On TecMint, You Should Consider:
- How to check Linux Version? [Linux Kernel Version Command]
- What is Linux OS?
- History of Linux
- Key Features of Linux Operating System
- Linux Distributions
- 5 Ways to Check the Linux Version
- Check the Linux Version
- 1. The “lsb_release” command
- 2. Display “/etc/os-release” file contents
- 3. Display “/etc/issue‘ file contents
- 4. The “hostnamectl” command
- 5. The “uname” command
- Additional Commands…
How to Find Out What Version of Linux You Are Running
There are several ways of knowing the version of Linux you are running on your machine as well as your distribution name and kernel version plus some extra information that you may probably want to have in mind or at your fingertips.
Therefore, in this simple yet important guide for new Linux users, I will show you how to do just that. Doing this may seem to be relatively easy task, however, having a good knowledge of your system is always a recommended practice for a good number of reasons including installing and running the appropriate packages for your Linux version, for easy reporting of bugs coupled with many more.
With that said, let us proceed to how you can figure out information about your Linux distribution.
Find Out Linux Kernel Version
We will use uname command, which is used to print your Linux system information such as kernel version and release name, network hostname, machine hardware name, processor architecture, hardware platform and the operating system.
To find out which version of Linux kernel you are running, type:
Shows Current Linux Kernel Version Running on System
In the preceding command, the option -o prints operating system name and -r prints the kernel release version.
You can also use -a option with uname command to print all system information as shown:
Shows Linux System Information
Next, we will use /proc file system, that stores information about processes and other system information, it’s mapped to /proc and mounted at boot time.
Simply type the command below to display some of your system information including the Linux kernel version:
Shows Linux System Information
From the image above, you have the following information:
- Version of the Linux (kernel) you are running: Linux version 4.5.5-300.fc24.x86_64
- Name of the user who compiled your kernel: [email protected]
- Version of the GCC compiler used for building the kernel: gcc version 6.1.1 20160510
- Type of the kernel: #1 SMP (Symmetric MultiProcessing kernel) it supports systems with multiple CPUs or multiple CPU cores.
- Date and time when the kernel was built: Thu May 19 13:05:32 UTC 2016
Find Out Linux Distribution Name and Release Version
The best way to determine a Linux distribution name and release version information is using cat /etc/os-release command, which works on almost all Linux system.
Find Linux Distribution Name and Release Version
In this article, we walked through a brief and simple guide intended to help new Linux user find out the Linux version they are running and also get to know their Linux distribution name and version from the shell prompt.
Perhaps it can also be useful to advanced users on one or two occasions. Lastly, to reach us for any assistance or suggestions you wish to offer, make use of the feedback form below.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
How to check Linux Version? [Linux Kernel Version Command]
Are you working with Linux OS and Would like to know that How to check linux version, Also What Linux version Command you should use to find the latest version on which you are running your system.
List of content you will read in this article:
Linux is a free and open-source operating system widely used as an alternative to Microsoft and Apple’s macOS [Mac operating system]. But Linux is a kernel that is considered the core component of the operating system and acts as a bridge between software applications and hardware. Are you looking to know how to check Linux version that you are using in your system or what Linux version command we can use to find Linux OS version? Then this article will guide you on how to do that.
What is Linux OS?
A Linux OS is built on the Linux kernel, GNU tools, and libraries. Many developers are using Linux for building and running mobile applications. Linux has played an essential role in developing affordable devices like Chromebooks that help to run the OS on the kernel. You can use Linux within the cloud computing and server environments due to various reasons, as mentioned below:
- The developers of other communities support Linux’s distributions.
- You can efficiently run the Linux kernel on a wide range of hardware. You can even install it with pre-existing systems.
- It allows you to install the centralized software from the pre-existing repositories.
- Linux does not require high resources and has a low requirement.
- It is strongly recommended while creating application ecosystems, tools for the server.
- Linux can easily sustain necessary changes to the operating system behaviors.
- Linux is free and open-source, making it simple for the developers to choose it for practical reasons.
- Some developers use Linux due to its features like accessibility and ensure freedom of expression.
- The broad Linux community is also an excellent influence for some developers. Whenever developers have any queries or problems, they can consult the community results and feedback on the particular issue or reach out directly to one of many active developers to get your query resolved.
History of Linux
After introducing UNIX in 1969, Richard Stallman was inspired to create a non-proprietary alternative to UNIX. He started working on the GNU project while working at MIT’s Artificial Intelligence Lab. In 1984, he left the laboratory work for distributing the GNU components as free software. The GNU kernel, also known as the GNU HURD, had gained the Free Software Foundation’s focus. FSF was founded and headed in 1985 by Stallman.
Another developer, Linus Torvalds, an undergraduate from Finnish, worked on the free alternative to UNIX. After he fed up with the licensing for MINIX, In 1991, he announced that he was working on an operating system resembling MINIX. Initially, he developed on MINIX using a C compiler. Linux has become a unique project with some developers who released Linux kernel version 1.0 with Torvalds in 1994.
Torvalds used GNU code and a C compiler from GNU; his kernel and many Linux distributions are built on the GNU components. Later Stallman expanded the term Linux to GNU/Linux as it describes both the role of the GNU involvement in the development of the Linux and the in-depth concept of fostering the GNU project Linux kernel. Even today, Linux distributions indicate the presence of both the Linux kernel and GNU elements.
Key Features of Linux Operating System
Though the Linux kernel has taken many concepts, features, and properties from Unix, you can still differ Linux system from the earlier UNIX system in the following ways:
- Linux’s core component, called the kernel, was created independently from other OS components. It makes Linux borrow different elements from various sources like GNU to create a complete operating system.
- Linux is an open-source operating system that is developed and maintained by a group of developers. The Linux kernel is licensed under the GNU General Public License, allowing the community developers to download and make any required changes. The GPL ensures that further changes and work must also maintain the original software license.
- Like UNIX, Linux also has a monolithic kernel architecture. But Linux kernels can be loaded and unloaded dynamically on demand.
- Unlike UNIX, Linux comes with symmetrical multiprocessor support, allowing you to access multiple processors using the single operating system, sharing the main memory and access to all I/O devices.
- Unlike Unix, Linux’s kernel is preemptive, allowing the scheduler to force a context switch on a driver or another kernel part while executing.
- Linux kernel does not maintain any difference between the threads and normal running processes.
- Linux comes with an interactive Command Line Interface and a Graphical user interface for user interactivity.
By 2020, there are more than 500 unique Linux distributions. The most popular and commonly used distributions are Ubuntu, Debian, Fedora, Linux Mint, SUSE, etc. If we consider the family tree of Ubuntu, it contains more than 65 software applications alone.
Below are some commonly used Linux distributions and the cases where they are used.
It mostly works as a Mac operating system and is easy to use.
5 Ways to Check the Linux Version
Are you wondering how to check the Linux version that you are running on your system? Let’s show you various ways you can fish out the OS details.
W hen most people talk of Linux, they are always referring to a Linux distribution. However, this is not the case. Linux itself is a kernel which acts as a bridge between user applications and the hardware. When we talk of a Linux distribution, we refer to an operating system developed from the Linux kernel. A distribution comes with a package manager, pre-installed applications, a Desktop Environment, and several more features.
Some of the popular Linux distributions include; Ubuntu, Fedora, Manjaro, CentOS, Kali Linux, Linux Mint, and more. In this post, I will use a Linux distribution called Parrot. It is one of the many penetration testing distros available. Others include Kali Linux, Backbox, etc.
Knowing the Linux version running on your machine will help you a great deal. For example, understanding which Linux distribution you are using will determine how you install your applications and packages. That is because every Linux distribution comes with its package management system.
In this post, you will learn how to check your Linux distribution, its version, and the kernel using the command-line.
Check the Linux Version
There are several terminal commands that you can execute to know your Linux version and distribution.
1. The “lsb_release” command
The lsb_release is a utility that provides Linux Standard Base (LSB) information about the distribution you are using. This command should work on all Linux distribution, which has the lsb_release package installed.
Execute the command below in the Terminal.
From the output shown in the image above, the ‘Description’ value shows I am currently running Parrot GNU/Linux 4.7.
If you wanted only to display this description information, including the ‘-d’ parameter instead of ‘-a.’ See the command below.
To list other arguments you can use with the “lsb_release” utility, use the ‘–help’ option as shown below.
lsb_release help command
If you get an error like “command not found: lsb_release” don’t worry, there are still other commands we can use to determine your Linux version.
2. Display “/etc/os-release” file contents
Another method you can use to know your Linux distribution and version is checking the contents of the ‘os-release‘ file in the ‘/etc. ‘ directory. You can use the ‘cat’ or ‘less’ command to display the contents.
3. Display “/etc/issue‘ file contents
Another way is displaying the contents of the ‘issue‘ file in the ‘/etc.’ directory. It holds the system identification text displayed before login. Run the command below.
4. The “hostnamectl” command
Another powerful utility we can use is ‘hostnamectl.’ It displays information about the Linux distribution, version, kernel, and more. You can also use it to change the hostname.
5. The “uname” command
The uname command shows information like the kernel architecture, version, name, and release. Execute the command below.
If the above commands don’t work for, you will probably run an old or outdated Linux distribution. However, this doesn’t mean its dead end for you. Try any of the commands below;
Those are four ways you can use to check your Linux version. My favorite method is using the “hostnamectl” command. I find it more comfortable and convenient. What about you? Feel free to tell us below.