View active ports on Linux with netstat

to see which ports are active, use netstat:

sudo netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)"

Leave a Reply