{
    "mode": "info",
    "parameter": "uname",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/uname/json",
    "generated": "2026-11-15T16:47:30Z",
    "sections": {
        "File: coreutils.info,  Node: uname invocation,  Next: hostname invocation,  Prev: nproc invocation,  Up: System context": {
            "content": "",
            "subsections": [
                {
                    "name": "21.4 'uname': Print system information",
                    "content": "'uname' prints information about the machine and operating system it is\nrun on.  If no options are given, 'uname' acts as if the '-s' option\nwere given.  Synopsis:\n\nuname [OPTION]...\n\nIf multiple options or '-a' are given, the selected information is\nprinted in this order:\n\nKERNEL-NAME NODENAME KERNEL-RELEASE KERNEL-VERSION\nMACHINE PROCESSOR HARDWARE-PLATFORM OPERATING-SYSTEM\n\nThe information may contain internal spaces, so such output cannot be\nparsed reliably.  In the following example, KERNEL-VERSION is '#1 SMP\nFri Jul 17 17:18:38 UTC 2020':\n\nuname -a\n=> Linux dumdum.example.org 5.9.16-200.fc33.x8664 #1 SMP Mon Dec 21 14:08:22 UTC 2020 x8664 x8664 x8664 GNU/Linux\n\nThe program accepts the following options.  Also see *note Common\noptions::.\n\n'-a'\n'--all'\nPrint all of the below information, except omit the processor type\nand the hardware platform name if they are unknown.\n\n'-i'\n'--hardware-platform'\nPrint the hardware platform name (sometimes called the hardware\nimplementation).  Print 'unknown' if this information is not\navailable.  Note this is non-portable (even across GNU/Linux\ndistributions).\n\n'-m'\n'--machine'\nPrint the machine hardware name (sometimes called the hardware\nclass or hardware type).\n\n'-n'\n'--nodename'\nPrint the network node hostname.\n\n'-p'\n'--processor'\nPrint the processor type (sometimes called the instruction set\narchitecture or ISA). Print 'unknown' if this information is not\navailable.  Note this is non-portable (even across GNU/Linux\ndistributions).\n\n'-o'\n'--operating-system'\nPrint the name of the operating system.\n\n'-r'\n'--kernel-release'\nPrint the kernel release.\n\n'-s'\n'--kernel-name'\nPrint the kernel name.  POSIX 1003.1-2001 (*note Standards\nconformance::) calls this \"the implementation of the operating\nsystem\", because the POSIX specification itself has no notion of\n\"kernel\".  The kernel name might be the same as the operating\nsystem name printed by the '-o' or '--operating-system' option, but\nit might differ.  Some operating systems (e.g., FreeBSD, HP-UX)\nhave the same name as their underlying kernels; others (e.g.,\nGNU/Linux, Solaris) do not.\n\n'-v'\n'--kernel-version'\nPrint the kernel version.\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n"
                }
            ]
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}