netstat

Displays network-related information such as open connections, open socket ports, etc. More information: <https://man7.org/linux/man-pages/man8/netstat.8.html>.

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