Netstat
$ netstat -natupe
-bash: netstat: command not found
$ apt install net-tools
$ netstat -natupe
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 29709 913/sshd