How to find my Linux version?
Debian, Ubuntu, Fedora? Find the name and the version of your distribution.
Open a terminal and use the following commands. Depending on the distribution, these commands might return different results.
Version of the Linux kernel
cat /proc/version # Linux version 5.15.0-52-generic (buildd@lcy02-amd64-032) # (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, # GNU ld (GNU Binutils for Ubuntu) 2.38) # #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022
Name and version of the distribution
cat /etc/issue # Ubuntu 22.04.1 LTS
Specific version for Debian
cat /etc/debian_version # bookworm/sid
Full description with Linux Standard Base
lsb_release -a # No LSB modules are available. # Distributor ID: Ubuntu # Description: Ubuntu 22.04.1 LTS # Release: 22.04 # Codename: jammy
If LSB is not installed
cat /etc/os-release # PRETTY_NAME="Ubuntu 22.04.1 LTS" # NAME="Ubuntu" # VERSION_ID="22.04" # VERSION="22.04.1 LTS (Jammy Jellyfish)" # VERSION_CODENAME=jammy # ID=ubuntu # ID_LIKE=debian
If you know other commands for any linux system, please share them in the comments.