netstat 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .TH NETSTAT 1
  2. .SH NAME
  3. netstat \- summarize network connections
  4. .SH SYNOPSIS
  5. .B netstat
  6. [
  7. .B -in
  8. ] [
  9. .B -p
  10. .I proto
  11. ] [
  12. .I netmtpt
  13. ]
  14. .SH DESCRIPTION
  15. .I Netstat
  16. prints information about network mounted at
  17. .IR netmtpt ,
  18. default
  19. .BR /net .
  20. For
  21. .I IP
  22. connections,
  23. .I netstat
  24. reports the protocol, connection number, user,
  25. connection state, local port, remote port and
  26. remote address.
  27. .PP
  28. The options are:
  29. .TP
  30. .B -i
  31. Instead of the usual listing, print one line per network interface.
  32. Each line gives the
  33. device, MTU, local address, mask, remote address, packets in,
  34. packets out, errors in, and errors out for this interface.
  35. .TP
  36. .B -n
  37. By default,
  38. .I netstat
  39. looks up port numbers and addresses in the network databases
  40. to print symbolic names if possible.
  41. This option disables such translation.
  42. .TP
  43. .B -p
  44. Show only connections with the given protocol.
  45. .PD
  46. .SH FILES
  47. .B /net/*/*
  48. .SH SOURCE
  49. .B /sys/src/cmd/netstat.c
  50. .SH "SEE ALSO"
  51. .IR ipconfig (8)