How To Check OS Version with Linux Command Line – Guide

Linux is a free and open source operating system. There are many types of Linux. They are commonly called Linux distributions. Suse, openSUSE, Debian, Ubuntu, CentOS, Arch, Fedora, RHEL are all common Linux distribution names. Knowing the version and name of your operating system can be very useful for security patches.

The Linux kernel is a core part of the operating system and is responsible for many of the features that make it so successful. This guide will show you how to check your distribution’s Linux kernel version.

How to Check the Linux OS version using lsb_release

lsb_release -a The output of this command will show the system’s Linux Standard Base version. ..

If you are not using a package manager, you can install this utility manually:

apt-get install apt

Check the Linux version in the /etc/issue file

/etc/issue This text file contains the system identification information for the computer on which you are logged in. The contents can be seen by using the command below:

Check the Linux OS version in the /etc/os-release file

os-release -a

Check Linux version with hostnamectl command

The hostnamectl command can be used to change or verify the hostname of a system. This command can also be used to check the OS and Kernel version of the system.

How to Check the OS version on an old Linux system

ls -l /usr/local/bin/ This will list all the local binaries and executables on your system. You can use this information to determine if you are able to run any of the commands listed above.

uname -a

Linux 3.2.0-4-amd64

Final note

How to Check OS Version with Linux Command Line In order to check the OS version on a linux system, you can use the following command: cat /proc/version