lsfd command
Shows open file descriptors for processes
Typical usage: system administration, troubleshootingIntroduction 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 | |
---|---|
Authors | Karel Zak, Masatake YAMATO |
Initial commit | 2021-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 system | Package name | Installation |
---|---|---|
AlmaLinux | n/a | |
Arch Linux | util-linux |
|
Debian | util-linux-extra |
|
Fedora | util-linux |
|
Red Hat Enterprise Linux | n/a | |
Rocky Linux | n/a | |
openSUSE | util-linux |
|
Ubuntu | util-linux-extra |
|
Your Linux distribution using a different package? Share your feedback.
Usage
Available options
Long option | Short option | Description |
---|---|---|
--filter | -Q | Define the filter to apply |
--json | -J | Output information in JSON format |
--noheadings | -n | Do not display headers in output |
--pids | -p | Specify 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:
Command | Category | Summary |
---|---|---|
basename | files | Strips directory and file name suffix from a given path |
fuser | files and sockets | Show processes using a file or socket |
lsof | files | Shows open files and sockets |
peekfd | processes | Tracks a process and show file descriptor activity |
watch | processes | Monitors changes in output of specified command |