1PEEKFD(1) User Commands PEEKFD(1)
2
3
4
6 peekfd - peek at file descriptors of running processes
7
9 peekfd [-8,--eight-bit-clean] [-n,--no-headers] [-f,--follow]
10 [-d,--duplicates-removed] [-V,--version] [-h,--help] pid [fd] [fd] ...
11
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
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
34 /proc/*/fd
35 Not used but useful for the user to look at to get good file
36 descriptor numbers.
37
39 None.
40
42 The following diagnostics may be issued on stderr:
43
44 Error attaching to pid ...
45 An unknown error occured while attempted to attach to a
46 process.. you may need to be root.
47
49 Probably lots. Don't be surprised if the process you are monitoring
50 dies.
51
53 Trent Waddington <trent.waddington@gmail.com>
54
56 ttysnoop(8)
57
58
59
60Linux APRIL 2007 PEEKFD(1)