{
    "mode": "man",
    "parameter": "uname",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/uname/json",
    "generated": "2026-07-05T02:10:56Z",
    "synopsis": "uname [OPTION]...",
    "sections": {
        "NAME": {
            "content": "uname - print system information\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "uname [OPTION]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print certain system information.  With no OPTION, same as -s.\n",
            "subsections": [
                {
                    "name": "-a --all",
                    "content": "print all information, in the following order, except omit -p and -i if unknown:\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-s --kernel-name",
                    "content": "print the kernel name\n",
                    "flag": "-s",
                    "long": "--kernel-name"
                },
                {
                    "name": "-n --nodename",
                    "content": "print the network node hostname\n",
                    "flag": "-n",
                    "long": "--nodename"
                },
                {
                    "name": "-r --kernel-release",
                    "content": "print the kernel release\n",
                    "flag": "-r",
                    "long": "--kernel-release"
                },
                {
                    "name": "-v --kernel-version",
                    "content": "print the kernel version\n",
                    "flag": "-v",
                    "long": "--kernel-version"
                },
                {
                    "name": "-m --machine",
                    "content": "print the machine hardware name\n",
                    "flag": "-m",
                    "long": "--machine"
                },
                {
                    "name": "-p --processor",
                    "content": "print the processor type (non-portable)\n",
                    "flag": "-p",
                    "long": "--processor"
                },
                {
                    "name": "-i --hardware-platform",
                    "content": "print the hardware platform (non-portable)\n",
                    "flag": "-i",
                    "long": "--hardware-platform"
                },
                {
                    "name": "-o --operating-system",
                    "content": "print the operating system\n\n--help display this help and exit\n",
                    "flag": "-o",
                    "long": "--operating-system"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by David MacKenzie.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright  ©  2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later\n<https://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "arch(1), uname(2)\n\nFull documentation <https://www.gnu.org/software/coreutils/uname>\nor available locally via: info '(coreutils) uname invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                    UNAME(1)",
            "subsections": []
        }
    },
    "summary": "uname - print system information",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "print all information, in the following order, except omit -p and -i if unknown:"
        },
        {
            "flag": "-s",
            "long": "--kernel-name",
            "arg": null,
            "description": "print the kernel name"
        },
        {
            "flag": "-n",
            "long": "--nodename",
            "arg": null,
            "description": "print the network node hostname"
        },
        {
            "flag": "-r",
            "long": "--kernel-release",
            "arg": null,
            "description": "print the kernel release"
        },
        {
            "flag": "-v",
            "long": "--kernel-version",
            "arg": null,
            "description": "print the kernel version"
        },
        {
            "flag": "-m",
            "long": "--machine",
            "arg": null,
            "description": "print the machine hardware name"
        },
        {
            "flag": "-p",
            "long": "--processor",
            "arg": null,
            "description": "print the processor type (non-portable)"
        },
        {
            "flag": "-i",
            "long": "--hardware-platform",
            "arg": null,
            "description": "print the hardware platform (non-portable)"
        },
        {
            "flag": "-o",
            "long": "--operating-system",
            "arg": null,
            "description": "print the operating system --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "arch",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/arch/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Print details about the current machine and the operating system running on it.",
        "examples": [
            {
                "description": "Print kernel name",
                "command": "uname"
            },
            {
                "description": "Print all available system information",
                "command": "uname {{-a|--all}}"
            },
            {
                "description": "Print system architecture and processor information",
                "command": "uname {{-mp|--machine --processor}}"
            },
            {
                "description": "Print kernel name, kernel release, and kernel version",
                "command": "uname {{-srv|--kernel-name --kernel-release --kernel-version}}"
            },
            {
                "description": "Print system hostname",
                "command": "uname {{-n|--nodename}}"
            },
            {
                "description": "Print the current operating system name",
                "command": "uname {{-o|--operating-system}}"
            },
            {
                "description": "Display help",
                "command": "uname --help"
            }
        ]
    }
}