Last mod: 2024.11.15

How to check OS Debian/Ubuntu version

Sometimes we need to check the name and version of the Debian/Ubuntu distribution. I have at least three methods for doing this.

We have serveral metods to check version of the Debian/Ubuntu distribution.

  1. LSB (Linux Standard Base) and Distribution information.
lsb_release -a

lsb_release -a

  1. Read directly from system file /etc/os-release
cat /etc/os-release

cat /etc/os-release

  1. Pring information about kernel name, version, and architecture.
uname -a

uname -a

  1. The /proc/version file provides information about the Linux kernel version details too.
cat /proc/version

cat /etc/os-release