Skip to content

Common netstat Parameters

1. Run netstat from the command line

netstat -ntlpa

  • -a: show all sockets. Listening sockets are not shown by default.
  • -t: show TCP sockets only.
  • -u: show UDP sockets only.
  • -n: do not resolve names. Show numeric addresses and ports.
  • -l: show listening services only.
  • -p: show the program name associated with each connection.
  • -r: show routing information and the routing table.
  • -e: show extended information, such as UID.
  • -s: show statistics for each protocol.
  • -c: rerun the command at a fixed interval.

REF

[1]. https://blog.csdn.net/qq_42991025/article/details/83547525

[2]. OSI模型

[3]. Notes-on-Podman-Network