From 27dd607f59f07146c21828312cec1d613640dc35 Mon Sep 17 00:00:00 2001 From: Nya Meteor Date: Sun, 25 Jul 2021 00:17:43 +0800 Subject: [PATCH] nettop: add page (#6254) --- pages/osx/nettop.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages/osx/nettop.md diff --git a/pages/osx/nettop.md b/pages/osx/nettop.md new file mode 100644 index 000000000..9b85de78d --- /dev/null +++ b/pages/osx/nettop.md @@ -0,0 +1,35 @@ +# 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`