LSFD(1) LSFD(1) lsfd - lsfd [] lsfd lsof(8) . lsof-, lsfd ; . lsfd lsof; . . , . --output - . lsfd ,,Libsmartcols" . --output , --filter . lsfd --help . -l, --threads . -J, --json . -n, --noheadings . -o, --output . . + (., lsfd -o +DELETED). -r, --raw . --notruncate . -p, --pid list Collect information only for the specified processes. The list is a comma-separated list of PIDs. See also FILTER EXAMPLES. -i[4|6], --inet[=4|=6] IPv4 / IPv6 . -Q, --filter expression Print only the files matching the condition represented by the expression. See also scols-filter(5) and FILTER EXAMPLES. The -Q option with a PID (for example: -Q PID==1) and the -p option (for example: -p 1) can be used to achieve the same result, but using the -p option is much more efficient because it works at a much earlier stage of processing than the -Q option. -C, --counter :_ --summary . lsfd . , lsfd _, . lsfd --filter ; . See scols-filter(5) about filter_expr. label should not include { nor :. You can define multiple counters by specifying this option multiple times. See also COUNTER EXAMPLES. --summary[=mode] This option controls summary lines output. The optional argument mode can be only, append, or never. If the mode argument is omitted, it defaults to only. . . --counter . , lsfd ( ) . : --summary --json . --summary=only --json. --debug-filter . lsfd . --dump-counters --summary. --hyperlink[=when] Print paths as terminal hyperlinks. The optional when argument can be always, never, or auto. If the argument is omitted, it defaults to auto, which means that hyperlinks will only be used when the output goes to a terminal. -H, --list-columns List the columns that can be specified with the --output option. Can be used with --json or --raw to get the list in a machine-readable format. -h, --help . -V, --version . LIBSMARTCOLS_DEBUG=all ,,libsmartcols" . LIBSMARTCOLS_DEBUG_PADDING=on . . < >. : . . AINODECLASS <> -. <> . <> ,,/proc/devices". BPF-MAP.ID <> . -. <> ,,bpf" . .-. <> (). . <> . .- <> . .- <> . .- <> ,,bpf" . .-. <> (). <> ,,/proc/devices". <> . <> . <> . <> (blk, char, nodev). <> IPC . lsfd lsfd ; lsfd -p. : , -, ,,ptmx" ,,pts" ,,[-r][-w] ([-r][-w]) / . ,, UNIX Same as UNIX-STREAM. In a container, lsfd may not fill ENDPOINTS column. lsfd uses sock_diag(7) to collect information about UNIX endpoints. SELinux may limit the use sock_diag in a container. You can remove the limit by setting 1 to virt_sandbox_use_netlink bool. See container_selinux(8) for more details. UNIX-STREAM ,,[-r?][-w?] ([-r?][-w?]), .. _ <> . EVENTPOLL.TFDS <> ,,eventpoll" . <> . <> . <> . . <> . . <> . 6. <> 6 . 6. <> 6 . - <> -. INOTIFY.- <> INOTIFY.INODES.RAW-. --,--. INOTIFY.-. <> - . --,-:-. <> ,,/proc/",,/fd/" ,,/proc/",,/map_files/". <> . MAJ:MIN <> , . <> ( ). <> ,,/proc/misc". <> . <> (rwx). <> -. . : AF_VSOCK state=. type=. laddr=V.L[ raddr=V.R] ,,raddr" . - =.- =.-[ =.] - id=BPF-PROG.ID type=BPF-PROG.TYPE tag= BPF-PROG.TAG [ name=BPF.NAME] eventpoll tfds=EVENTPOLL.TFDS eventfd =. inotify -=INOTIFY.- : iface=TUN.IFACE[ devnetns=TUN.DEVNETNS][ socknetns=SOCK.NETNS] protocol=NETLINK.PROTOCOL[ lport=NETLINK.LPORT[ group=NETLINK.GROUPS]] type=SOCK.TYPE[ protocol=PACKET.PROTOCOL][ iface=PACKET.IFACE] pidfd pid=TARGET-PID comm=TARGET-COMMAND nspid=TARGET-NSPIDS lsfd TARGET-PID TARGET-NSPIDS ,,/proc/",,/fdinfo/". state=SOCK.STATE[ id=PING.ID][ laddr=INET.LADDR [ raddr=INET.RADDR]] 6 state=SOCK.STATE[ id=PING.ID][ laddr=INET6.LADDR [ raddr=INET6.RADDR]] ptmx tty-index=PTMX.TTY-INDEX lsfd TARGET-PID TARGET-NSPIDS ,,/proc/",,/fdinfo/". RAW state=SOCK.STATE[ protocol=RAW.PROTOCOL [ laddr=INET.LADDR [ raddr=INET.RADDR]]] RAWv6 state=SOCK.STATE[ protocol=RAW.PROTOCOL [ laddr=INET6.LADDR [ raddr=INET6.RADDR]]] _ mask=. TCP, TCPv6 state=SOCK.STATE[ laddr=TCP.LADDR [ raddr=TCP.RADDR]] timerfd clockid=TIMERFD.CLOCKID[ =TIMERFD.REMAINING [ =TIMERFD.INTERVAL]] UDP, UDPv6 state=SOCK.STATE[ laddr=UDP.LADDR [ raddr=UDP.RADDR]] lsfd ,,raddr=" UDP.RADDR ,,0.0.0.0" UDP.RPORT 0. UDP-LITE, UDPLITEv6 state=SOCK.STATE[ laddr=UDPLITE.LADDR [ raddr=UDPLITE.RADDR]] UNIX-STREAM state=SOCK.STATE[ path=UNIX.PATH] UNIX state=SOCK.STATE[ path=UNIX.PATH] type=SOCK.TYPE ,,()" . -, , X- . . <>> . . <>> . . <>> . <> . . <> (NS.TYPE:[INODE]) . . <> . ,,mnt", ,,cgroup", ,,uts", ,,ipc", ,,user", ,,pid", ,,net", ,,time" ,,unknown". <> . .IFACE <> . . <> L2 protocol name associated with the packet socket (decoded). PACKET.PROTOCOL.RAW L2 protocol number associated with the packet socket (raw). <> ,,/proc/partition". <> . . <> ,,pidfd"-. . <> NSpid ,,/proc/"pid,,/fdinfo/"fd ,,pidfd"-. ,,/fork.c" : , ,,pidfd"- , . ,,NSpid" . ,,Pid" ,,NSpid" ,,/proc/<>/" ,,procfs" . . <> ,,pidfd"-. . <> ICMP PING . <> . RAW.PROTOCOL Protocol name of the raw socket (decoded). Note The data type of this column was from v2.39 to v2.41. RAW.PROTOCOL.RAW Protocol number of the raw socket (raw). RDEV <> ( ). . <> . <> . SOCK.LISTENING <> . SOCK.NETS <> Inode identifying network namespace where the socket belongs. SOCK.PROTONAME <> . . <> . [-r?] r, . -, . ?, . [-w?] w, . -, . ?, . SOCK.STATE <> . SOCK.TYPE <> . : o stream o dgram o raw o rdm o seqpacket o dccp o <> , . , lsfd syscall:_errno_. STTYPE <> stat(2): BLK, CHR, DIR, FIFO, LINK, REG, SOCK, UNKN. TCP.LADDR <> L3 (INET.LADDR INET6.LADDR) TCP . TCP.LPORT <> TCP . TCP.RADDR <> L3 (INET.RADDR INET6.RADDR) TCP . TCP.RPORT <> TCP . <> . . <> _. . <> . . <> . PTMX.TTY-INDEX <> TTY . TUN.DEVNETNS Inode identifying network namespace where the device belongs. TUN.IFACE <> . <> STTYPE-. STTYPE . , SOCK.PROTONAME. , AINODECLASS ,,anon_inodefs". lsfd ,,syscall" , lsfd . UDP.LADDR <> UDP . UDP.LPORT <> UDP . UDP.RADDR <> UDP . UDP.RPORT <> UDP . UDPLITE.LADDR <> UDPLite . UDPLITE.LPORT <> UDP . UDPLITE.RADDR <> UDPLite . UDPLITE.RPORT <> UDP . <> . UNIX.IPEER < number > Inode number for the peer of the UNIX domain socket. If lsfd runs in a container, it may not fill UNIX.IPEER column. See the description of UNIX in ENDPOINTS column for more details. UNIX. <> . <> . VSOCK.LADDR <>, VSOCK.RADDR <> VSOCK . VSOCK.LCID:VSOCK.LPORT. CID- : ,,*", ,,hypervisor", ,,local", ,,host". : ,,*". VSOCK.LCID <>, VSOCK.RCID <> VSOCK . VSOCK.LPORT <>, VSOCK.RPORT <> VSOCK . X- <> -. ; X- lsfd / . [-r] . -. [-w] . -. [-x] . . [-D] . . [-Ll] . l , . L . / / , L . [-m] Multiplexed. If the file descriptor is targeted by a eventpoll file or classical system calls for multiplexing (select(2), pselect(2), poll(2), and ppoll(2)), this bit flag is set. Note that if an invocation of the classical system calls is interrupted, lsfd may fail to mark m on the file descriptors monitored by the invocation. See restart_syscall(2). lsfd . , -Q ( --filter) . -o ( --output) , . 1 2 : # lsfd -Q '(PID == 1) (PID == 2)' : # lsfd -Q '(PID == 1) || (PID == 2)' : # lsfd --pid 1,2 : # lsfd --pid '1 2' pidof(1) ,,firefox": # lsfd --pid "$(pidof firefox)" 1 1 : # lsfd -Q '(PID == 1) (FD == 1)' : # lsfd -Q '(PID == 1) && (FD == 1)' : # lsfd -Q 'ASSOC == "exe"' : # lsfd -Q 'ASSOC eq "exe"' : # lsfd -o NAZIV -Q 'ASSOC eq "exe"' | sort -u : # lsfd -Q 'DELETED' - : # lsfd -Q 'TYPE != "REG"' : # lsfd -Q 'DEVTYPE == "blk"' : # lsfd -Q 'TYPE == "BLK"' ,,dconf" : # lsfd -Q 'NAME =~ ".\*/dconf/.*"' QEMU : # lsfd -Q '(COMMAND =~ ".\*qemu.*") (FD >= 0)' 0.5 : # lsfd -Q '(TIMERFD. < 0.5) (TIMERFD. > 0.0)' : # lsfd -Q 'VRSTA == "UNIX-TOK" && UNIX.PUTANJA =~ ".+"' -oUNIX.PUTANJA,PID,NAREDBA,OD,SOCK.STANJE,KRAJWETACKE : # lsfd -Q 'VRSTA == "UNIX-TOK" && UNIX.PUTANJA == "@/tmp/.X11-unix/X0"' -oUNIX.PUTANJA,PID,NAREDBA,OD,SOCK.STANJE,KRAJWETACKE : # lsfd --summary=only \ -C 'netlink sockets':'(NAME =~ "NETLINK:.*")' \ -C 'unix sockets':'(NAME =~ "UNIX:.*")' 57 netlink sockets 1552 unix sockets : # lsfd --summary=only --json \ -C 'netlink sockets':'(NAME =~ "NETLINK:.*")' \ -C 'unix sockets':'(NAME =~ "UNIX:.*")' { "lsfd-summary": [ { "value": 15, "counter": "netlink sockets" },{ "value": 798, "counter": "unix sockets" } ] } lsfd ,,util-linux" v2.38. Masatake YAMATO , Karel Zak bpftool(8), bps(8), lslocks(8), lsof(8), pidof(1), proc(5), scols-filter(5), socket(2), ss(8), stat(2), vsock(7) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". lsfd ,,util-linux" . util-linux 2.42.3 2026-09-02 LSFD(1)