PEEKFD(1)
โจ PEEKFD(1) โ peekfd, the manual bestie ๐
okay so peekfd is the manual name for this one, and it's giving "peek at file descriptors of running processes" ๐๐ฆ
โจ SYNOPSIS โจ
peekfd [-8,--eight-bit-clean] [-n,--no-headers] [-c,--follow]
[-d,--duplicates-removed] [-V,--version] [-h,--help] pid [fd] [fd] ...
๐ DESCRIPTION ๐
okay so peekfd slides right up to a running process and intercepts every single read and write going through its file descriptors ๐ญโจ You can name the exact fd numbers you care about, or just dump all of them. Main character energy, no cap ๐
๐ OPTIONS ๐
-8โ bestie, this one means no post-processing on the bytes being read or written. Raw and unfiltered ๐-nโ skip the headers that show where the bytes came from. Less noise, more vibes ๐ธ-cโ also dump the requested fd activity in any new child processes that spawn. It follows the drama everywhere ๐ง-dโ removes duplicate reads/writes from the output. Lowkey essential if you're staring at a tty with echo on ๐-vโ displays a version string โจ-hโ displays a help message ๐ซถ
๐ฆ FILES ๐ฆ
/proc/*/fdโ not used by peekfd itself, but super useful for you to peek at so you can pick good fd numbers ๐
๐ ENVIRONMENT ๐
None. Zero env vars, zero drama ๐
๐จ DIAGNOSTICS ๐จ
The following diagnostics may be issued on stderr:
Error attaching to pid <PID>โ an unknown error popped up while trying to attach to a process. You might need to be root, so go check ๐
๐ BUGS ๐
Probably lots. Don't be surprised if the process you're monitoring dies on you ๐ญ
๐ AUTHOR ๐
Trent Waddington, the icon who made this ๐ซถ
๐ SEE ALSO ๐
ttysnoop(8)โ go check this one out next ๐ง
bestie, that's the whole page ๐ Brought to you by psmisc, last updated 2021-12-01. Stay iconic, stay curious, and go peek at some file descriptors โจ๐
๐ฆ where this page comes from
- alpine 3.22: psmisc-doc 23.7-r0 ยท GPL-2.0-or-later
- alpine 3.23: psmisc-doc 23.7-r0 ยท GPL-2.0-or-later
- alpine 3.24: psmisc-doc 23.7-r0 ยท GPL-2.0-or-later
- arch rolling: psmisc 23.7-2 ยท GPL
- centos-stream 10: psmisc 23.6-8.el10 ยท GPL-2.0-or-later
- debian bookworm: psmisc 23.6-1 ยท GPL-2.0-or-later
- debian trixie: psmisc 23.7-2 ยท GPL-2.0-or-later
- fedora 43: psmisc 23.7-6.fc43 ยท GPL-2.0-or-later
- fedora 44: psmisc 23.7-7.fc44 ยท GPL-2.0-or-later
- nixos 26.05: psmisc 23.7
- nixpkgs unstable: psmisc 23.7
- opensuse-leap 16.0: psmisc 23.7-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: psmisc 23.7-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: psmisc 23.7-160000.2.2 ยท GPL-2.0-or-later
- ubuntu noble: psmisc 23.7-1build1 ยท GPL-2.0-or-later
- ubuntu questing: psmisc 23.7-2ubuntu1 ยท GPL-2.0-or-later
- ubuntu resolute: psmisc 23.7-2ubuntu2 ยท GPL-2.0-or-later
- ubuntu stonking: psmisc 23.7-2ubuntu2 ยท GPL-2.0-or-later
- Copyright 2007 Trent Waddington <trent.waddington@gmail.com>
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms