lsfd command

Shows open file descriptors for processes

Typical usage: system administration, troubleshooting

Introduction into lsfd

The lsfd command can be used to show open file descriptors for the system or a selection. The project states it is intended to be a replacement of the lsof command, although it is not a drop-in replacement. This means the parameters and syntax will be different. One of the major benefits of lsfd is that it is purely aimed at Linux, so it has better support for Linux features, like cgroups.

The initial commit for lsfd within the util-linux project was at Oct 6, 2021.

Project details

Background information about the lsfd command.
Background information
AuthorsKarel Zak, Masatake YAMATO
Initial commit2021-10-06

Installation

When lsfd is not installed by default, it can be added to the system using the relevant software package.

Package information for lsfd

Operating systemPackage nameInstallation
AlmaLinuxn/a
Arch Linuxutil-linux
pacman -S util-linux
Debianutil-linux-extra
apt install util-linux-extra
Fedorautil-linux
dnf install util-linux
Red Hat Enterprise Linuxn/a
Rocky Linuxn/a
openSUSEutil-linux
zypper install util-linux
Ubuntuutil-linux-extra
apt install util-linux-extra

Your Linux distribution using a different package? Share your feedback.

Usage

Available options

Long optionShort optionDescription
--filter-QDefine the filter to apply
--json-JOutput information in JSON format
--noheadings-nDo not display headers in output
--pids-pSpecify for which process ID(s) the file descriptors should be displayed

Missing an option in this overview? Share your feedback.

Examples using lsfd

Show open file descriptors for PID 123 and 124

lsfd --pid 123,124

Frequently Asked Questions

What is the lsfd command and its purpose?

The lsfd command is a command-line tool on Linux to show what file descriptors are opened by processes.

Which package provides the lsfd command?

The command lsfd is provided by the util-linux or util-linux-extra package.

Related and similar commands

Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to lsfd:

Related and similar commands to lsfd
CommandCategorySummary
basenamefilesStrips directory and file name suffix from a given path
fuserfiles and socketsShow processes using a file or socket
lsoffilesShows open files and sockets
peekfdprocessesTracks a process and show file descriptor activity
watchprocessesMonitors changes in output of specified command