Security, PKI, sys and network admins

How to view/display Linux version

How to view/display Linux version

I came across a lot of situations where I needed to know the exact version of the OS I was using. Mainly, because of the dependencies involved (Python, PHP, MySQL, etc).

So, open up a terminal and use the following commands in order to view the exact version of your Linux operating system.

Ubuntu

lsb_release -d
How to view/display Linux version - Ubuntu 18.04 LTS desktop
How to view/display Linux version – Ubuntu 18.04 LTS desktop
lsb_release -a
How to view/display Linux version - Ubuntu 18.04 LTS desktop
How to view/display Linux version – Ubuntu 18.04 LTS desktop

CentOS

rpm -q centos-release
How to view/display Linux version - CentOS 7.5 server
How to view/display Linux version – CentOS 7.5 server
hostnamectl
How to view/display Linux version - CentOS 8.2 server
How to view/display Linux version – CentOS 8.2 server

Red Hat Fedora

rpm -q fedora-release-common

rpm -q fedora-release-workstation

How to view/display Linux version - Fedora 31 workstation

How to view/display Linux version – Fedora 31 workstation

cat /etc/redhat-release

cat /etc/os-release

OpenSuse

cat /etc/os-release

How to view/display Linux version - OpenSuse Tumbleweed
How to view/display Linux version – OpenSuse Tumbleweed

Leave a Reply

Your email address will not be published. Required fields are marked *