2021-07-25 00:17:43 +08:00
|
|
|
# nettop
|
|
|
|
|
|
|
|
> Display updated information about the network.
|
2024-01-31 07:20:27 -03:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/nettop.1.html>.
|
2021-07-25 00:17:43 +08:00
|
|
|
|
|
|
|
- Monitor TCP and UDP sockets from all interfaces:
|
|
|
|
|
|
|
|
`nettop`
|
|
|
|
|
|
|
|
- Monitor TCP sockets from Loopback interfaces:
|
|
|
|
|
|
|
|
`nettop -m {{tcp}} -t {{loopback}}`
|
|
|
|
|
|
|
|
- Monitor a specific process:
|
|
|
|
|
2022-02-14 03:21:43 -08:00
|
|
|
`nettop -p "{{process_id|process_name}}"`
|
2021-07-25 00:17:43 +08:00
|
|
|
|
|
|
|
- Display a per-process summary:
|
|
|
|
|
|
|
|
`nettop -P`
|
|
|
|
|
|
|
|
- Print 10 samples of network information:
|
|
|
|
|
|
|
|
`nettop -l {{10}}`
|
|
|
|
|
|
|
|
- Monitor changes every 5 seconds:
|
|
|
|
|
|
|
|
`nettop -d -s {{5}}`
|
|
|
|
|
|
|
|
- While running nettop, list interactive commands:
|
|
|
|
|
|
|
|
`h`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`nettop -h`
|