Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-20250514· AnthropicHugging Face LMArena Human Preference 140K

Check Linux version

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Googlegemma-3n-e4b-it’s answer.
  1. User

    Check Linux version

  2. Claude 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 -d
    

    Other 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-release
    

    Most comprehensive output:

    # This works on most modern distributions
    cat /etc/os-release
    

    This 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"
    

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.