{
    "mode": "man",
    "parameter": "peekfd",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/peekfd/1/json",
    "generated": "2026-08-28T08:00:13Z",
    "synopsis": "peekfd   [-8,--eight-bit-clean]   [-n,--no-headers]  [-c,--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]  [-c,--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": "\u001b]8;;mailto:trent.waddington@gmail.com\u001b\\Trent Waddington\u001b]8;;\u001b\\\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ttysnoop(8)\n\npsmisc                                       2021-12-01                                    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"
        }
    ]
}