1PEEKFD(1)                        User Commands                       PEEKFD(1)
2
3
4

NAME

6       peekfd - peek at file descriptors of running processes
7

SYNOPSIS

9       peekfd [-8,--eight-bit-clean] [-n,--no-headers] [-c,--follow] [-d,--du‐
10       plicates-removed] [-V,--version] [-h,--help] pid [fd] [fd] ...
11

DESCRIPTION

13       peekfd attaches to a running  process  and  intercepts  all  reads  and
14       writes  to file descriptors.  You can specify the desired file descrip‐
15       tor numbers or dump all of them.
16

OPTIONS

18       -8     Do no post-processing on the bytes being read or written.
19
20       -n     Do not display  headers  indicating  the  source  of  the  bytes
21              dumped.
22
23       -c     Also  dump  the  requested  file  descriptor activity in any new
24              child processes that are created.
25
26       -d     Remove duplicate read/writes from the output.  If you're looking
27              at a tty with echo, you might want this.
28
29       -v     Display a version string.
30
31       -h     Display a help message.
32

FILES

34       /proc/*/fd
35              Not used but useful for the user to look at to get good file de‐
36              scriptor numbers.
37

ENVIRONMENT

39       None.
40

DIAGNOSTICS

42       The following diagnostics may be issued on stderr:
43
44       Error attaching to pid <PID>
45              An unknown  error  occurred  while  attempted  to  attach  to  a
46              process, you may need to be root.
47

BUGS

49       Probably  lots.   Don't  be surprised if the process you are monitoring
50       dies.
51

AUTHOR

53       Trent Waddington ⟨trent.waddington@gmail.com⟩
54

SEE ALSO

56       ttysnoop(8)
57
58
59
60psmisc                            2021-12-01                         PEEKFD(1)
Impressum