linux - check debian version

Bash
[Edit]
+
0
-
0

Linux - check Debian version

178050
1 2 3 4 5 6 7 8 9 10 11 12 13 14
hostnamectl # Example output: # # Static hostname: my-pc # Icon name: computer-vm # Chassis: vm # Machine ID: 344769088453c364f43ab88d97d23621 # Boot ID: d4d59b3c3cb294350f10db0792ec4952 # Virtualization: kvm # Operating System: Debian GNU/Linux 10 (buster) # Kernel: Linux 4.19.0-9-cloud-amd64 # Architecture: x86-64
[Edit]
+
0
-
0

Linux - check Debian version

1 2 3 4 5 6 7 8 9 10 11 12 13 14
cat /etc/os-release # Example output: # # PRETTY_NAME="Debian GNU/Linux 10 (buster)" # NAME="Debian GNU/Linux" # VERSION_ID="10" # VERSION="10 (buster)" # VERSION_CODENAME=buster # ID=debian # HOME_URL="https://www.debian.org/" # SUPPORT_URL="https://www.debian.org/support" # BUG_REPORT_URL="https://bugs.debian.org/"
[Edit]
+
0
-
0

Linux - check Debian version

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
lsb_release -crid # Example output: # # PRETTY_NAME="Debian GNU/Linux 10 (buster)" # NAME="Debian GNU/Linux" # VERSION_ID="10" # VERSION="10 (buster)" # VERSION_CODENAME=buster # ID=debian # HOME_URL="https://www.debian.org/" # SUPPORT_URL="https://www.debian.org/support" # BUG_REPORT_URL="https://bugs.debian.org/" # nazwaYPh2u1hGkQ@server168193:~$ cat /etc/issue^C # nazwaYPh2u1hGkQ@server168193:~$ lsb_release -crid # Distributor ID: Debian # Description: Debian GNU/Linux 10 (buster) # Release: 10 # Codename: buster