From 4a148f467d1a7c842a41c177e7e0fcbcd306cf7d Mon Sep 17 00:00:00 2001 From: Hugo Ribeira Date: Fri, 29 Jan 2016 14:26:33 +0000 Subject: [PATCH] Add common and useful netstat use case This is one of the most useful netstat options I've found. I thought it was worth sharing. --- pages/linux/netstat.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/linux/netstat.md b/pages/linux/netstat.md index 41415436e..f533e2d4e 100644 --- a/pages/linux/netstat.md +++ b/pages/linux/netstat.md @@ -25,3 +25,7 @@ - List routes and do not resolve IP to hostname: `netstat -rn` + +- List listening TCP and UDP ports (+ user and process if you're root): + +`netstat -lepunt`