Home / Computer / Easy Ways to Check the Full Linux OS Version Using the Command Line

Easy Ways to Check the Full Linux OS Version Using the Command Line

As we know Linux is an open source Operating System, which means that everyone can freely use and modify it. In the Linux Operating System there is a lot of distribution or what we often call the term Distro some of which are popular, namely Debian, Ubuntu, Arch, Open Suse, CentOS, Fedora and many more. But there are still many new Linux users who still don't know the complete information from the Linux OS used, such as the Linux version, kernal, architectur, etc.

There are many ways we can use to find out information about Linux OS that we use only by using Command Line or Terminal. Well, below I will share a number of ways including

/ etc / os-release file

Type the command:

 $ cat / etc / os-release 

Output:

 NAME = "Ubuntu"
VERSION = "16.04.6 LTS (Xenial Xerus)"
ID = ubuntu
ID_LIKE = debian
PRETTY_NAME = "Ubuntu 16.04.6 LTS"
VERSION_ID = "16.04"
HOME_URL = "http://www.ubuntu.com/"
SUPPORT_URL = "http://help.ubuntu.com/"
BUG_REPORT_URL = "http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME = xenial
UBUNTU_CODENAME = xenial 

lsb_release

This command will give you LSB (Linux Standard Base) information and specific distributions.

Type the command:

 $ lsb_release -a 

Output:

 No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial 

hostnamectl

To check the name of the OS and the Kernal Version.

Type the command:

 $ hostnamectl 

Output:

 Static hostname: SANEDU_2
Icon name: computer-vm
Chassis: vm
Machine ID: 00b1c9adfb57a233179106375bc6b295
Boot ID: 3660ad2b5d5e426c80471d2a425fbda5
Virtualization: qemu
Operating System: Ubuntu 16.04.6 LTS
Kernel: Linux 4.4.0-137-generic
Architecture: x86-64 

uname

Only to find the external version.

Type the command:

 $ uname -r 

Output:

 4.4.0-137-generic 

Well that's some Command Line which can be used to find out more complete information from OS Linux that you use.

Loading...

Check Also

Linux on Windows helps systems administrators gain new skills

Over the last few years, Microsoft has been working to initiate Linux on Windows Server, …

%d bloggers like this: