Skip to content

Latest commit

 

History

History
66 lines (57 loc) · 1.17 KB

File metadata and controls

66 lines (57 loc) · 1.17 KB

Version Check

Most Common

cat /etc/os-release

Sample Output:

NAME="Ubuntu"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
ID=ubuntu
...

For Ubuntu/Debian

lsb_release -a

Sample Output:

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble

If you get lsb_release: command not found, you can install it using:

sudo apt install lsb-release

Kernel version (not OS, but still useful)

uname -a

Example Output:

Linux my-host 5.15.0-91-generic #101-Ubuntu SMP ... x86_64 GNU/Linux

Distro version (alternative)

hostnamectl

Example output:

 Static hostname: ip-172-31-41-104
       Icon name: computer-vm
         Chassis: vm 🖴
      Machine ID: ec26830473146038e9e9962622047ef2
         Boot ID: 85a551891c534fb38496b9219c123252
  Virtualization: xen
Operating System: Ubuntu 24.04.2 LTS              
          Kernel: Linux 6.8.0-1028-aws
    Architecture: x86-64
 Hardware Vendor: Xen
  Hardware Model: HVM domU
Firmware Version: 4.11.amazon
   Firmware Date: Thu 2006-08-24
    Firmware Age: 18y 10month 3w 2d