Check Linux version
- User
Check Linux version
Assistant
Here are several ways to check your Linux version:
Quick methods:
# Distribution info cat /etc/os-release # Or use lsb_release (if installed) lsb_release -a # For a one-liner with just the distro name/version lsb_release -dOther useful commands:
# Kernel version uname -r # Full system info uname -a # Distribution-specific files (older systems) cat /etc/*release cat /etc/*version # More detailed system info hostnamectl # For Debian/Ubuntu specifically cat /etc/debian_version # For RedHat/CentOS/Fedora cat /etc/redhat-releaseMost comprehensive output:
# This works on most modern distributions cat /etc/os-releaseThis will show you:
- Distribution name (Ubuntu, Fedora, Debian, etc.)
- Version number
- Codename (if applicable)
- ID and ID_LIKE for script compatibility
Example output:
NAME="Ubuntu" VERSION="22.04.3 LTS (Jammy Jellyfish)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 22.04.3 LTS" VERSION_ID="22.04"
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.