{
    "mode": "man",
    "parameter": "LINUX-VERSION",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/LINUX-VERSION/1/json",
    "generated": "2026-10-22T13:26:32Z",
    "synopsis": "linux-version compare VERSION1 OP VERSION2\nlinux-version sort [--reverse] [VERSION1 VERSION2 ...]\nlinux-version list [--paths]",
    "sections": {
        "NAME": {
            "content": "linux-version - operate on Linux kernel version strings\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "linux-version compare VERSION1 OP VERSION2\n\nlinux-version sort [--reverse] [VERSION1 VERSION2 ...]\n\nlinux-version list [--paths]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "linux-version  operates  on  Linux kernel version strings as reported by uname -r and used in\nfile and directory names.  These version strings do not follow the same rules as Debian pack‐\nage version strings and should not be compared as such or as arbitrary strings.\n\ncompare VERSION1 OP VERSION2\nCompare version strings, where OP is a binary operator. linux-version returns  success\n(zero  result)  if  the specified condition is satisfied, and failure (nonzero result)\notherwise.  The valid operators are: lt le eq ne ge gt\n\nsort [--reverse] [VERSION1 VERSION2 ...]\nSort the given version strings and print them in order from lowest to highest.  If the\n--reverse option is used, print them in order from highest to lowest.\n\nIf no version strings are given as arguments, the version strings will instead be read\nfrom standard input, one per line.  They may be suffixed by  arbitrary  text  after  a\nspace, which will be included in the output.  This means that, for example:\n\nlinux-version list --paths | linux-version sort --reverse\n\nwill list the installed versions and corresponding paths in order from highest to low‐\nest version.\n\nlist [--paths]\nList kernel versions installed in the customary location.  If the --paths option, show\nthe corresponding path for each version.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "linux-version  and  this  manual  page  were  written  by Ben Hutchings as part of the Debian\nlinux-base package.\n\n30 March 2011                           LINUX-VERSION(1)",
            "subsections": []
        }
    },
    "summary": "linux-version - operate on Linux kernel version strings",
    "flags": [],
    "examples": [],
    "see_also": []
}