{
    "content": [
        {
            "type": "text",
            "text": "# peekfd (man)\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## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **FILES**\n- **ENVIRONMENT**\n- **DIAGNOSTICS**\n- **BUGS**\n- **AUTHOR**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "peekfd",
        "section": "",
        "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] ...",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "peekfd - peek at file descriptors of running processes\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "peekfd   [-8,--eight-bit-clean]   [-n,--no-headers]  [-f,--follow]  [-d,--duplicates-removed]\n[-V,--version] [-h,--help] pid [fd] [fd] ...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "peekfd 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",
                "subsections": []
            },
            "OPTIONS": {
                "content": "-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",
                "subsections": []
            },
            "FILES": {
                "content": "/proc/*/fd\nNot used but useful for the user to look at to get good file descriptor numbers.\n",
                "subsections": []
            },
            "ENVIRONMENT": {
                "content": "None.\n",
                "subsections": []
            },
            "DIAGNOSTICS": {
                "content": "The 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",
                "subsections": []
            },
            "BUGS": {
                "content": "Probably lots.  Don't be surprised if the process you are monitoring dies.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Trent Waddington ⟨trent.waddington@gmail.com⟩\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "ttysnoop(8)\n\n\n\npsmisc                                       2020-09-09                                    PEEKFD(1)",
                "subsections": []
            }
        }
    }
}