From 5eb448ebf6074a635f166d4b05d281b52baa1381 Mon Sep 17 00:00:00 2001 From: Cameron Tod Date: Wed, 21 Nov 2018 10:30:05 +1300 Subject: [PATCH] netstat: add route print example (#2566) --- pages/linux/netstat.md | 6 +++++- pages/osx/netstat.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/linux/netstat.md b/pages/linux/netstat.md index f533e2d4e..51a65aacc 100644 --- a/pages/linux/netstat.md +++ b/pages/linux/netstat.md @@ -1,6 +1,6 @@ # netstat -> Displays various networks related information such as open connections, open socket ports etc. +> Displays network-related information such as open connections, open socket ports, etc. - List all ports: @@ -29,3 +29,7 @@ - List listening TCP and UDP ports (+ user and process if you're root): `netstat -lepunt` + +- Print the routing table: + +`netstat -nr` diff --git a/pages/osx/netstat.md b/pages/osx/netstat.md index 4f925ae6e..c8e52183c 100644 --- a/pages/osx/netstat.md +++ b/pages/osx/netstat.md @@ -1,6 +1,6 @@ # netstat -> Displays various networks related information such as open connections, open socket ports etc. +> Displays network-related information such as open connections, open socket ports, etc. - List all ports: @@ -21,3 +21,7 @@ - List information continuously: `netstat -c` + +- Print the routing table: + +`netstat -nr`