# Commands
```bash
# -a: display all sockets
# -n: do not resolve names
# -o: display timers
netstat -ano
netstat -tulnp
# shows all listening ports and established connections
netstat -a
# list TCP or UDP protocols
netstat -at
netstat -au
# list ports in "listening" mode. They are ready to accept incoming connections
netstat -l
netstat -lt # TCP
# list network usage statistics by protocol
netstat -s
# list connections with service name and PID information
netstat -p
```