1LSFD(1) User Commands LSFD(1)
2
3
4
6 lsfd - list file descriptors
7
9 lsfd [option]
10
12 lsfd is intended to be a modern replacement for lsof(8) on Linux
13 systems. Unlike lsof, lsfd is specialized to Linux kernel; it supports
14 Linux specific features like namespaces with simpler code. lsfd is not
15 a drop-in replacement for lsof; they are different in the command line
16 interface and output formats.
17
18 The default output is subject to change. So whenever possible, you
19 should avoid using default outputs in your scripts. Always explicitly
20 define expected columns by using --output columns-list in environments
21 where a stable output is required.
22
23 lsfd uses Libsmartcols for output formatting and filtering. See the
24 description of --output option for customizing the output format, and
25 --filter option for filtering. Use lsfd --help to get a list of all
26 available columns.
27
29 -l, --threads
30 List in threads level.
31
32 -J, --json
33 Use JSON output format.
34
35 -n, --noheadings
36 Don’t print headings.
37
38 -o, --output list
39 Specify which output columns to print. See the OUTPUT COLUMNS
40 section for details of available columns.
41
42 The default list of columns may be extended if list is specified in
43 the format +list (e.g., lsfd -o +DELETED).
44
45 -r, --raw
46 Use raw output format.
47
48 --notruncate
49 Don’t truncate text in columns.
50
51 -p, --pid pids
52 Collect information only for specified processes. pids is a list of
53 pids. A comma or whitespaces can be used as separators. You can use
54 this option with pidof(1). See FILTER EXAMPLES.
55
56 Both -Q option with an expression including PID, e.g. -Q (PID ==
57 1), and -p option, e.g. -p 1, may print the same output but using
58 -p option is much more efficient because -p option works at a much
59 earlier stage of processing than the -Q option.
60
61 -i[4|6], --inet[=4|6]
62 List only IPv4 sockets and/or IPv6 sockets.
63
64 -Q, --filter expr
65 Print only the files matching the condition represented by the
66 expr. See also FILTER EXAMPLES.
67
68 -C, --counter label:filter_expr
69 Define a custom counter used in --summary output. lsfd makes a
70 counter named label. During collect information, lsfd counts files
71 matching filter_expr, and stores the counted number to the counter
72 named label. lsfd applies filters defined with --filter options
73 before counting; files excluded by the filters