How to check network connections and open ports
$ netstat -an
- Command
- netstat
- Description
- Print network connections, routing tables, interface statistics, etc. Usage: netstat -an
- Deep Dive
- -a: All -n: Numeric addresses Use grep to filter, e.g., `netstat -an | grep 8080`.