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”
VERSION_ID=”7″
PRETTY_NAME=”CentOS Linux 7 (Core)”
ANSI_COLOR=”0;31″CPE_NAME=”cpe:/o:centos:centos:7″
HOME_URL=”https://www.centos.org/”

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



Categories: Cyber Security

Tags:

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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.