{
    "content": [
        {
            "type": "text",
            "text": "# peekfd(1) (man)\n\n**Summary:** peekfd - peek at file descriptors of running processes\n\n**Synopsis:** peekfd   [-8,--eight-bit-clean]   [-n,--no-headers]  [-f,--follow]  [-d,--duplicates-removed]\n[-V,--version] [-h,--help] pid [fd] [fd] ...\n\n## See Also\n\n- ttysnoop(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (14 lines)\n- **FILES** (3 lines)\n- **ENVIRONMENT** (2 lines)\n- **DIAGNOSTICS** (6 lines)\n- **BUGS** (2 lines)\n- **AUTHOR** (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\npeekfd - peek at file descriptors of running processes\n\n### SYNOPSIS\n\npeekfd   [-8,--eight-bit-clean]   [-n,--no-headers]  [-f,--follow]  [-d,--duplicates-removed]\n[-V,--version] [-h,--help] pid [fd] [fd] ...\n\n### DESCRIPTION\n\npeekfd attaches to a running process and intercepts all reads and writes to file descriptors.\nYou can specify the desired file descriptor numbers or dump all of them.\n\n### OPTIONS\n\n-8     Do no post-processing on the bytes being read or written.\n\n-n     Do not display headers indicating the source of the bytes dumped.\n\n-c     Also  dump  the requested file descriptor activity in any new child processes that are\ncreated.\n\n-d     Remove duplicate read/writes from the output.  If you're looking at a tty  with  echo,\nyou might want this.\n\n-v     Display a version string.\n\n-h     Display a help message.\n\n### FILES\n\n/proc/*/fd\nNot used but useful for the user to look at to get good file descriptor numbers.\n\n### ENVIRONMENT\n\nNone.\n\n### DIAGNOSTICS\n\nThe following diagnostics may be issued on stderr:\n\nError attaching to pid <PID>\nAn  unknown  error occurred while attempted to attach to a process, you may need to be\nroot.\n\n### BUGS\n\nProbably lots.  Don't be surprised if the process you are monitoring dies.\n\n### AUTHOR\n\nTrent Waddington ⟨trent.waddington@gmail.com⟩\n\n### SEE ALSO\n\nttysnoop(8)\n\n\n\npsmisc                                       2020-09-09                                    PEEKFD(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "peekfd",
        "section": "1",
        "mode": "man",
        "summary": "peekfd - peek at file descriptors of running processes",
        "synopsis": "peekfd   [-8,--eight-bit-clean]   [-n,--no-headers]  [-f,--follow]  [-d,--duplicates-removed]\n[-V,--version] [-h,--help] pid [fd] [fd] ...",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "ttysnoop",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/ttysnoop/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}