How to check Linux OS version & name?

Below is the command which give details about linux OS.

$cat /etc/os-release

NAME=”CentOS Linux”
VERSION=”7 (Core)”
ID=”centos”ID_LIKE=”rhel fedora”
PRETTY_NAME=”CentOS Linux 7 (Core)”

More details of Linux OS Name & OS Architecture

$ hostnamectl

Static hostname: ip-10-153-12-45.ec2.internal
Icon name: computer-vm
Chassis: vm
Machine ID: 05cb8c7b39fe0f70e3ce97e5beab809d
Boot ID: 4f19f7a9540544339aa772caa892b7a1
Virtualization: xen
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-957.12.2.el7.x86_64
Architecture: x86-64

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.