Linux Example | Get Linux Version

This linux example shows how to chek linux version.

Using hostnamectl command

hostnamectl

We will see:

 Static hostname: localhost.localdomain
       Icon name: computer-server
         Chassis: server
      Machine ID: f72d412640154b01a52adb599c4a6072
         Boot ID: 0bddf404f0b7406898c3a03cfe8d7d28
Operating System: CentOS Linux 7 (Core)
     CPE OS Name: cpe:/o:centos:centos:7
          Kernel: Linux 3.10.0-229.el7.x86_64
    Architecture: x86-64