lsof
Command line tool listing files opened by processes
lsof is a command line utility that lists the files opened by running processes on a Unix-like system. Its output covers regular files, directories, sockets and other open resources, which makes it useful for system administrators and developers who need to find out what a program is using or which process is holding a file or network port.
The project's source code is publicly available on GitHub, and documentation is hosted on Read the Docs. The facts available for this listing do not describe a specific pricing model or the full list of supported platforms, so those details are not given here.
Alternatives to lsof
Products that do a similar job in System & Customization.
gtop
Terminal system monitor showing CPU, memory and processes
Sloth
Mac GUI showing files, sockets and devices held open by running processes
RustNet
Terminal tool showing network connections for each running process
Mole
Open-source cleaner for freeing disk space on Mac and PC
XQuartz
Open-source X Window System server for macOS
yazi
Terminal file manager written in Rust with async I/O
Konsole
Terminal emulator for running command shells on Linux
fastfetch
command-line tool that shows system information in the terminal