Netstat Commands

by Scott, Revised on October 26, 2009 (Linux)

List all open ports

netstat -a[n]

List listening ports (n - by port number, not protocol)

netstat -l[n] -inet[6]

List listening TCP ports

netstat -l[n] -tcp

netstat -tulpn

Tags: Linux