macOS
brew install lsoflocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für lsof in AI-Agent-Workflows.
Installation
brew install lsoflocal Homebrew formula metadata
sudo apk add lsofAlpine Linux edge package indexes · lsof · Quelle: dl-cdn.alpinelinux.org
sudo apt install lsofDebian stable package indexes · lsof · Quelle: deb.debian.org
sudo dnf install lsofFedora Rawhide package metadata · lsof · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#lsofnixpkgs package indexes · pkgs/by-name/ls/lsof/package.nix · Quelle: api.github.com
sudo pacman -S lsofArch Linux sync databases · lsof · Quelle: geo.mirror.pkgbuild.com
sudo zypper install lsofopenSUSE Tumbleweed package metadata · lsof · Quelle: download.opensuse.org
Überblick
Utility to list open files
Verlauf
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.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
lsof | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/lsof-org/lsof
Installationsmetadaten
| Paketschlüssel | brew:lsof |
|---|---|
| Version | 4.99.7 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/lsof |
| Homepage | https://github.com/lsof-org/lsof |
| Repository | https://github.com/lsof-org/lsof |
| Upstream-Dokumentation | https://lsof.readthedocs.io/en/latest |
| Lizenz | lsof |
| Quellarchiv | https://github.com/lsof-org/lsof/archive/refs/tags/4.99.7.tar.gz |
| Zuletzt aktualisiert | 2026-06-16T17:44:41Z |
| Pulse | updated |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| 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-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
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-develQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.