From 1eb7603197d97277d81a1313aefb51ec17a73c32 Mon Sep 17 00:00:00 2001 From: "Ziyan \"Jerry\" Chen" Date: Wed, 10 Nov 2021 16:45:45 -0500 Subject: [PATCH] lsof: edit -iTCP example with -i6TCP, -n and -P (#7153) --- pages/common/lsof.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/lsof.md b/pages/common/lsof.md index 815c6326e0..2d40516316 100644 --- a/pages/common/lsof.md +++ b/pages/common/lsof.md @@ -32,6 +32,6 @@ `lsof +D {{path/to/directory}}` -- Find the process that is listening on a local TCP port: +- Find the process that is listening on a local IPv6 TCP port and don't convert network or port numbers: -`lsof -iTCP:{{port}} -sTCP:LISTEN` +`lsof -i6TCP:{{port}} -sTCP:LISTEN -n -P`