Skip to content

Netstat

This is very useful command. (It's a must)

Show open ports:

Bash
netstat -tulpen

Show established connections:

Bash
sudo netstat -tpn
Bash
sudo netstat -tpn | grep ssh

Back to top