netstat

Commands

CommandDescription
netstat -anactive connections
ss -anactive connections
netstat -anoactive connectsion with pid
ss -anoactive connectsion with pid
netstat -nplshows open ports where server listens
ss -nplshows open ports where server listens