Check the version of ubuntu Operating System
Check the version of ubuntu OS:
lsb_release -a
root@Oracle1:/home/sunny/Desktop# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
Check version from etc config file:
root@Oracle1:/home/sunny/Desktop# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
root@Oracle1:/home/sunny/Desktop# cat /etc/lsb-release | grep DESCRIPTION
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
root@Oracle1:/home/sunny/Desktop# cat /etc/*release | grep VERSION
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
Check version from hostnamectl command:
root@Oracle1:/home/sunny/Desktop# hostnamectl
Static hostname: Oracle1
Icon name: computer-vm
Chassis: vm
Machine ID: b6c5598602e249308757de3e3f532eeb
Boot ID: a681895b98004f058b719307502a5a23
Virtualization: oracle
Operating System: Ubuntu 22.04.1 LTS
Kernel: Linux 5.15.0-56-generic
Architecture: x86-64
Hardware Vendor: innotek GmbH
Hardware Model: VirtualBox
root@Oracle1:/home/sunny/Desktop#