netstat
netstat prints information about the Linux networking subsystem.[1]
Documentation
- man 8 'netstat' [EN]
Syntax
netstat [PARAMETER ...]
Parameters
- -i INTERFACE, --interface=INTERFACE
- Display a table of all network INTERFACE, or the specified interface.
- -r, --route
- Display the kernel routing tables.
- -s, --statistics
- Display summary statistics for each protocol.
- -a, --all
- Show both listening and non-listening sockets. With the --interfaces option, show interfaces that are not marked.
- -c, --continuous
- This will cause netstat to print the selected information every second continuously.
- -C
- Print routing information from the route cache.
- -l, --listening
- Show only listening sockets.
- -n, --numeric
- Show numerical addresses instead of trying to determine symbolic host, port or user names.
- -p, --program
- Show the PID and name of the program to which each socket belongs.
- -t, --tcp
- -u, --udp
Examples
netstat --all --program --tcp
References
- ↑ man 8 'netstat'