macOS
brew install lsoflocal Homebrew formula metadata
brew
Utility to list open files. Version 4.99.7 via Homebrew; verified 2026-06-16.
install
brew install lsoflocal Homebrew formula metadata
sudo apk add lsofAlpine Linux edge package indexes · lsof · source: dl-cdn.alpinelinux.org
sudo apt install liblsof-devDebian stable package indexes · liblsof-dev · source: deb.debian.org
sudo dnf install lsofFedora Rawhide package metadata · lsof · source: dl.fedoraproject.org
nix profile install nixpkgs#lsofnixpkgs package indexes · pkgs/by-name/ls/lsof/package.nix · source: api.github.com
sudo pacman -S lsofArch Linux sync databases · lsof · source: geo.mirror.pkgbuild.com
sudo apt install lsofUbuntu 24.04 LTS package indexes · lsof · source: archive.ubuntu.com
sudo zypper install liblsof0openSUSE Tumbleweed package metadata · liblsof0 · source: download.opensuse.org
overview
Utility to list open files
history
lsof, short for LiSt Open Files, is a long-running Unix diagnostic command for showing which processes have files, directories, devices, sockets, and other file-like objects open. Its official documentation describes common uses such as finding processes blocking unmounts, locating unlinked open files, inspecting network sockets, and filtering by PID, command, or user.
The official lsof documentation states that Vic Abell originally developed and maintained lsof beginning in 1994. The project later moved under the lsof-org team on GitHub, which now publishes the current releases and Read the Docs documentation.
lsof's importance comes from the Unix everything-is-a-file model. The official manpage describes support across many Unix dialects, including Linux, Darwin/macOS, FreeBSD, NetBSD, OpenBSD, Solaris, and OpenIndiana, and explains that open files include regular files, directories, character and block devices, executing text references, libraries, streams, internet sockets, NFS files, and Unix-domain sockets.
lsof is one of the canonical system-administration packages. The official docs say it is provided by package managers, and the supplied package facts list availability through Homebrew, Alpine, Debian/Ubuntu, Fedora/DNF, Arch, Nix, and openSUSE/Zypper.
The GitHub repository was created for the maintained upstream in 2018 and continues to receive updates. The project documentation lists active support and CI coverage across major Unix-like systems, which helps downstream package maintainers keep it viable despite kernel and platform-specific internals.
Administrators and developers use lsof to answer practical questions: which process has a file open, why a filesystem cannot be unmounted, where deleted-but-open files are consuming disk space, which TCP or UDP sockets a process owns, and what a named command or user has open.
The official manpage is unusually rich because lsof has to expose platform-specific kernel data in a portable CLI. It includes selectors for paths, PIDs, users, commands, network addresses, file descriptors, zones, repeat mode, parseable output via `-F`, and device-cache behavior.
For package nerds, lsof is foundational plumbing. It is a tiny command with outsized diagnostic value, but it is hard to maintain because it tracks kernel data structures and Unix dialect differences. That combination explains why it is routinely installed by default or close to default in sysadmin toolsets, containers, rescue environments, and debugging checklists.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lsof | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/lsof-org/lsof
install metadata
| Package key | brew:lsof |
|---|---|
| Version | 4.99.7 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lsof |
| Homepage | https://github.com/lsof-org/lsof |
| Repository | https://github.com/lsof-org/lsof |
| Upstream docs | https://lsof.readthedocs.io/en/latest |
| License | lsof |
| Source archive | https://github.com/lsof-org/lsof/archive/refs/tags/4.99.7.tar.gz |
| Last updated | 2026-06-16T17:44:41Z |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lsof |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
liblsof-dev 4.99.4+dfsg-2
utility to list open files (development files)
https://github.com/lsof-org/lsof
sudo apt install liblsof-devliblsof0 4.99.4+dfsg-2
utility to list open files (shared library)
https://github.com/lsof-org/lsof
sudo apt install liblsof0lsof 4.99.4+dfsg-2
utility to list open files
https://github.com/lsof-org/lsof
sudo apt install lsoflsof
nix profile install nixpkgs#lsoflsof 4.95.0-1build3
utility to list open files
https://github.com/lsof-org/lsof
sudo apt install lsoflsof 4.99.6-r0
LiSt Open Files
https://github.com/lsof-org/lsof
sudo apk add lsoflsof-doc 4.99.6-r0
LiSt Open Files (documentation)
https://github.com/lsof-org/lsof
sudo apk add lsof-doclsof 4.99.6-1.fc45
A utility which lists open files on a Linux/UNIX system
https://github.com/lsof-org/lsof
sudo dnf install lsoflsof 4.99.6-1
Lists open files for running Unix processes
https://github.com/lsof-org/lsof
sudo pacman -S lsofliblsof0 4.99.4-3.3
Library for listing information about files opened by process
https://github.com/lsof-org/lsof
sudo zypper install liblsof0lsof 4.99.4-3.3
A Program That Lists Information about Files Opened by Processes
https://github.com/lsof-org/lsof
sudo zypper install lsoflsof-devel 4.99.4-3.3
Library for listing information about files opened by process
https://github.com/lsof-org/lsof
sudo zypper install lsof-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.