{
    "content": [
        {
            "type": "text",
            "text": "# MKNOD(1) (man)\n\n**Summary:** mknod - make block or character special files\n\n**Synopsis:** mknod [OPTION]... NAME TYPE [MAJOR MINOR]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -m | --mode | — | set file permission bits to MODE, not a=rw - umask |\n| -Z | — | — | --context[=CTX] like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX --help display thi |\n| — | --version | — | output version information and exit Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they must be omi |\n\n## See Also\n\n- mknod(2)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (4 lines) — 3 subsections\n  - -m --mode (2 lines)\n  - -Z (5 lines)\n  - --version (16 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (8 lines)\n\n## Full Content\n\n### NAME\n\nmknod - make block or character special files\n\n### SYNOPSIS\n\nmknod [OPTION]... NAME TYPE [MAJOR MINOR]\n\n### DESCRIPTION\n\nCreate the special file NAME of the given TYPE.\n\nMandatory arguments to long options are mandatory for short options too.\n\n#### -m --mode\n\nset file permission bits to MODE, not a=rw - umask\n\n#### -Z\n\n--context[=CTX]\nlike -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX\n\n--help display this help and exit\n\n#### --version\n\noutput version information and exit\n\nBoth MAJOR and MINOR must be specified when TYPE is b, c, or u, and they must be omitted when\nTYPE is p.  If MAJOR or MINOR begins with 0x or 0X, it is interpreted as hexadecimal;  other‐\nwise, if it begins with 0, as octal; otherwise, as decimal.  TYPE may be:\n\nb      create a block (buffered) special file\n\nc, u   create a character (unbuffered) special file\n\np      create a FIFO\n\nNOTE:  your shell may have its own version of mknod, which usually supersedes the version de‐\nscribed here.  Please refer to your shell's documentation for details about  the  options  it\nsupports.\n\n### AUTHOR\n\nWritten by David MacKenzie.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright  ©  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\n### SEE ALSO\n\nmknod(2)\n\nFull documentation <https://www.gnu.org/software/coreutils/mknod>\nor available locally via: info '(coreutils) mknod invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                    MKNOD(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "MKNOD",
        "section": "1",
        "mode": "man",
        "summary": "mknod - make block or character special files",
        "synopsis": "mknod [OPTION]... NAME TYPE [MAJOR MINOR]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-m",
                "long": "--mode",
                "arg": null,
                "description": "set file permission bits to MODE, not a=rw - umask"
            },
            {
                "flag": "-Z",
                "long": null,
                "arg": null,
                "description": "--context[=CTX] like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX --help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X, it is interpreted as hexadecimal; other‐ wise, if it begins with 0, as octal; otherwise, as decimal. TYPE may be: b create a block (buffered) special file c, u create a character (unbuffered) special file p create a FIFO NOTE: your shell may have its own version of mknod, which usually supersedes the version de‐ scribed here. Please refer to your shell's documentation for details about the options it supports."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "mknod",
                "section": "2",
                "url": "https://www.chedong.com/phpMan.php/man/mknod/2/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": [
                    {
                        "name": "-m --mode",
                        "lines": 2,
                        "flag": "-m",
                        "long": "--mode"
                    },
                    {
                        "name": "-Z",
                        "lines": 5,
                        "flag": "-Z"
                    },
                    {
                        "name": "--version",
                        "lines": 16,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 8,
                "subsections": []
            }
        ]
    }
}