{
    "mode": "man",
    "parameter": "mkfifo",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/mkfifo/1/json",
    "generated": "2026-06-03T00:21:21Z",
    "synopsis": "mkfifo [OPTION]... NAME...",
    "sections": {
        "NAME": {
            "content": "mkfifo - make FIFOs (named pipes)\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mkfifo [OPTION]... NAME...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Create named pipes (FIFOs) with the given NAMEs.\n\nMandatory arguments to long options are mandatory for short options too.\n",
            "subsections": [
                {
                    "name": "-m --mode",
                    "content": "set file permission bits to MODE, not a=rw - umask\n",
                    "flag": "-m",
                    "long": "--mode"
                },
                {
                    "name": "-Z",
                    "content": "--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",
                    "flag": "-Z"
                },
                {
                    "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": "mkfifo(3)\n\nFull documentation <https://www.gnu.org/software/coreutils/mkfifo>\nor available locally via: info '(coreutils) mkfifo invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                   MKFIFO(1)",
            "subsections": []
        }
    },
    "summary": "mkfifo - make FIFOs (named pipes)",
    "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"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Make named pipes, also known as First In First Out (FIFO).",
        "examples": [
            {
                "description": "Create a named pipe at a given path",
                "command": "mkfifo {{path/to/pipe}}"
            },
            {
                "description": "Send data through a named pipe and send the command to the background",
                "command": "echo \"{{Hello World}}\" > {{path/to/pipe}} &"
            },
            {
                "description": "Receive data through a named pipe",
                "command": "cat {{path/to/pipe}}"
            },
            {
                "description": "Share your terminal session in real-time",
                "command": "mkfifo {{path/to/pipe}}; script {{-f|--flush}} {{path/to/pipe}}"
            }
        ]
    }
}