{
    "mode": "man",
    "parameter": "peekfd",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/peekfd/1/json",
    "generated": "2026-05-30T05:14:42Z",
    "synopsis": "peekfd   [-8,--eight-bit-clean]   [-n,--no-headers]  [-f,--follow]  [-d,--duplicates-removed]\n[-V,--version] [-h,--help] pid [fd] [fd] ...",
    "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": []
        }
    },
    "summary": "peekfd - peek at file descriptors of running processes",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "ttysnoop",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ttysnoop/8/json"
        }
    ]
}