{
    "mode": "perldoc",
    "parameter": "write",
    "section": "-f",
    "url": "https://www.chedong.com/phpMan.php/perldoc/write/json",
    "generated": "2026-06-03T04:23:37Z",
    "sections": [],
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Write a message on the terminal of a specified logged in user (`<Ctrl c>` to stop writing messages).",
        "examples": [
            {
                "description": "Send a message to a given user on a given terminal ID",
                "command": "write {{username}} {{terminal_id}}"
            },
            {
                "description": "Send message to \"testuser\" on terminal `/dev/tty/5`",
                "command": "write {{testuser}} {{tty/5}}"
            },
            {
                "description": "Send message to \"johndoe\" on pseudo terminal `/dev/pts/5`",
                "command": "write {{johndoe}} {{pts/5}}"
            }
        ]
    }
}