Forrest logo
back to the sar tool


sar: Report a total of 10 network device statistics, one per 2 seconds.
$ sar -n DEV ${2} ${10}
try on your machine

The command "sar -n DEV ${2} ${10}" is used to display network device activity statistics using the "sar" command on a Unix-like operating system.

Here is a breakdown of the command:

  • "sar" is a command-line utility used for system resource monitoring and performance analysis.
  • "-n DEV" is an option provided to the "sar" command, specifying that we want to display network device activity statistics.
  • "${2}" and "${10}" are arguments passed to the command. In Unix-like systems, arguments are accessed using "$1", "$2", "$3", and so on. In this case, "${2}" represents the second argument passed to the command, and "${10}" represents the tenth argument.

So, the specific meaning of the command would depend on what values are provided as arguments when executing it. The second argument could be a network device name, and the tenth argument could be a time interval or a date range for which the network device activity statistics should be 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 sar tool