How to Check Linux Version
At the point when individuals allude to Linux, they are generally alluding to a Linux circulation. Carefully, Linux is a bit, the center part of the working framework that, basically, demonstrations simply like an extension between the product applications and the equipment. A Linux circulation is a working framework produced using a Linux part, GNU devices and libraries, and programming assortments. For the most part, Linux circulations incorporate work area conditions, bundle the executives framework, and a bunch of preinstalled applications.
Probably the most famous Linux appropriations are Debian, Red Hat, Ubuntu, Arch Linux, Fedora, CentOS, Kali Linux, OpenSUSE, Linux Mint, and so forth
At the point when you sign in to a Linux framework unexpectedly, prior to accomplishing any work, it is consistently a smart thought to check what rendition of Linux is running on the machine. For instance, deciding the Linux circulation can assist you with sorting out what bundle director you should use to put in new bundles.
This article tells the best way to check what Linux appropriation and variant is introduced on your framework utilizing the order line.
lsb_release
command
The lsb_release utility showcases LSB (Linux Standard Base) data about the Linux dissemination. This order should deal with all Linux dispersions that have the lsb-discharge bundle introduced:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
The Linux circulation and rendition are appeared in the Description line. As should be obvious from the yield above, I have Debian GNU/Linux 9.5 (stretch) introduced on my framework.
Rather than printing the entirety of the above data, you can show the portrayal line, which shows your Debian form passing the - d switch.
lsb_release -d
The yield should seem to be like underneath:
Description: Debian GNU/Linux 9.5 (stretch)
In the event that you get "order not found: lsb_release" you can attempt to recognize the Linux variant utilizing a portion of different strategies underneath.
/etc/os-release
file
The/and so forth/os-discharge document contains working framework distinguishing proof information, including data about the dissemination. This document is essential for the systemd bundle and should be available on all framework running systemd.
To see the substance of the os-discharge record, utilize either feline or less :
cat /etc/os-release
The yield should look something like beneath:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
/etc/issue
file
The/and so forth/issue record contains a framework recognizable proof book that is printed before the login brief. Normally, this record incorporates data about the Linux rendition:
cat /etc/issue
The yield will look something like this:
Debian GNU/Linux 9 \n \l
hostnamectl
command
hostnamectl utility is essential for systemd and is utilized to question and change the framework hostname. This order additionally shows the Linux appropriation and portion form .
hostnamectl
Static hostname: debian9.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: a92099e30f704d559adb18ebc12ddac4
Boot ID: 7607cbe605d44f638d6542d4c7b3878e
Virtualization: qemu
Operating System: Debian GNU/Linux 9 (stretch)
Kernel: Linux 4.9.0-8-amd64
Architecture: x86-64
/etc/*release
file
In the event that none of the orders above work for you, at that point in all likelihood, you are running an old and obsolete Linux circulation. For this situation, you can utilize one of the accompanying orders, which should print the substance of the circulation delivery or rendition record:
cat /etc/*release
cat /etc/*version
You can discover more data about the delivery/adaptation documents at this connection .
uname
command
The uname order shows a few framework data, including the Linux portion design, name, form, and delivery.
To discover what variant of the Linux part is running on your framework, type the accompanying order:
uname -srm
Linux 4.9.0-8-amd64 x86_64
The yield above discloses to us that the Linux bit is 64-bit, and its variant is "4.9.0-8-amd64".
Conclusion
There are a few distinct orders that can assist you with discovering the Linux conveyance and variant is running on the framework.
On the off chance that you have a Linux circulation with a work area climate, you can likewise check your dispersion and adaptation from the graphical interface.
Don't hesitate to leave a remark on the off chance that you have any inquiries.