Show the Debian or Ubuntu version of a server
check debian version | find out os version linux | is this bookworm or bullseye | show ubuntu version | debian | version | systemcat /etc/debian_version && grep -E '^(PRETTY_NAME|VERSION_CODENAME)=' /etc/os-releaseFirst shows the point release from /etc/debian_version (for example 12.7), then the full name and codename from /etc/os-release. Useful before upgrades, when checking compatibility requirements or for support requests. Works even if lsb_release is not installed.
Note: On Ubuntu, /etc/debian_version only contains the underlying Debian base (such as trixie/sid). The relevant line there is PRETTY_NAME.
Also searched as
- check debian version
- find out os version linux
- is this bookworm or bullseye
- show ubuntu version