commands.sh

nettop

macos

Display updated information about the network.

More info →

Examples (8)

Monitor TCP and UDP sockets from all interfaces

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

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

made by @shridhargupta | data from tldr-pages