sockstat

List open Internet or UNIX domain sockets. More information: <https://www.freebsd.org/cgi/man.cgi?query=sockstat&sektion=1>.

Install

All systems
curl cmd.cat/sockstat.sh
Debian Debian
apt-get install sockstat
Ubuntu
apt-get install sockstat
image/svg+xml Kali Linux
apt-get install sockstat
Windows (WSL2)
sudo apt-get update sudo apt-get install sockstat
Raspbian
apt-get install sockstat

List open Internet or UNIX domain sockets. More information: <https://www.freebsd.org/cgi/man.cgi?query=sockstat&sektion=1>.

  • View which users/processes are listening to which ports:
    sockstat -l

© tl;dr; authors and contributors