macOS
brew install lsoflocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de lsof pour les workflows d'agents IA.
installation
brew install lsoflocal Homebrew formula metadata
sudo apk add lsofAlpine Linux edge package indexes · lsof · Source: dl-cdn.alpinelinux.org
sudo apt install lsofDebian stable package indexes · lsof · 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 zypper install lsofopenSUSE Tumbleweed package metadata · lsof · Source: download.opensuse.org
aperçu
Utility to list open files
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
lsof | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/lsof-org/lsof
métadonnées d'installation
| Clé du paquet | brew:lsof |
|---|---|
| Version | 4.99.7 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/lsof |
| Page d'accueil | https://github.com/lsof-org/lsof |
| Dépôt | https://github.com/lsof-org/lsof |
| Docs amont | https://lsof.readthedocs.io/en/latest |
| Licence | lsof |
| Archive source | https://github.com/lsof-org/lsof/archive/refs/tags/4.99.7.tar.gz |
| Dernière mise à jour | 2026-06-16T17:44:41Z |
| Pulse | updated |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-develpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.