nettop
Nettop is a command-line tool available on macOS that provides real-time monitoring of network activity. It allows users to view information about network connections, processes, and their associated data transfer rates. With nettop, one can monitor both incoming and outgoing network traffic. The tool presents this information in a table format, displaying details such as process name, PID, protocol, remote and local addresses, packet counts, and connection status. Additionally, nettop highlights which connections are actively sending or receiving data. Users can also filter and sort the displayed results based on various attributes like PID, process name, or transfer rate. Nettop is a useful tool for analyzing network usage, identifying resource-intensive processes, and troubleshooting network issues on macOS systems.
List of commands for nettop:
-
nettop:tldr:02722 nettop: Print 10 samples of network information.$ nettop -l ${10}try on your machineexplain this command
-
nettop:tldr:1943a nettop: Monitor TCP sockets from Loopback interfaces.$ nettop -m ${tcp} -t ${loopback}try on your machineexplain this command
-
nettop:tldr:bc689 nettop: Monitor a specific process.$ nettop -p "${select}"try on your machineexplain this command
-
nettop:tldr:eb315 nettop: Monitor TCP and UDP sockets from all interfaces.$ nettoptry on your machineexplain this command
-
nettop:tldr:f054f nettop: Display a per-process summary.$ nettop -Ptry on your machineexplain this command
-
nettop:tldr:f9a2a nettop: Monitor changes every 5 seconds.$ nettop -d -s ${5}try on your machineexplain this command