lsof

Lists open files and the corresponding processes. Note: Root privileges (or sudo) is required to list files opened by others. More information: <https://manned.org/lsof>.

Debian Debian
RUN apt-get update && \ apt-get install -y lsof
Ubuntu
RUN apt-get update && \ apt-get install -y lsof
Alpine
RUN apk add lsof
Arch Arch Linux
RUN pacman -S --noconfirm lsof
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y lsof
CentOS
RUN yum install -y lsof
Fedora
RUN dnf install -y lsof
Raspbian
RUN apt-get update && \ apt-get install -y lsof
click the source code to copy install lsof on any operating system with command-not-found.com