1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/nettop.md
2021-07-24 18:17:43 +02:00

35 lines
535 B
Markdown

# nettop
> Display updated information about the network.
- Monitor TCP and UDP sockets from all interfaces:
`nettop`
- Monitor TCP sockets from Loopback interfaces:
`nettop -m {{tcp}} -t {{loopback}}`
- Monitor a specific process:
`nettop -p {{process_id|process_name}}`
- 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`