Forrest logo
back to the nettop tool

nettop:tldr:f9a2a

nettop: Monitor changes every 5 seconds.
$ nettop -d -s ${5}
try on your machine

The command "nettop -d -s ${5}" is used to display a real-time view of the network activity on a macOS system.

Here is a breakdown of the command:

  • "nettop" is the command-line tool in macOS that provides network activity monitoring functionality.
  • "-d" flag is used to enable delta mode in nettop. Delta mode shows the difference in network activity since the last refresh. This is helpful in highlighting recent changes in network activity.
  • "-s ${5}" flag is used to sort the network connections or processes based on a specific column. In this case, "${5}" refers to the 5th column in the nettop output. The specific column can vary depending on the system configuration or network setup.

By executing this command, you will get a continuously updating display showing network usage statistics, including information about network connections, processes using the network, and their respective bandwidth usage, packets sent/received, and more. The sorting based on the specified column will determine the order in which the network connections or processes are displayed.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nettop tool