netstat
$ netstat [--all] [--list] [--tcp] [--udp] [--program]
Display network connections
--help
: Display help message and exit--version
: Print version-a
, --all
: Display both listening and non-listening sockets-l
, --list
: Display only listening sockets-t
, --tcp
: Display only TCP network connections-u
, --udp
: Display only UDP network connections-p
, --program
: Show the PID and name of the program to which each socket belongs