From 6abab41aa6b9836fb8cca1427202a015a7c9d690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20=C3=96zdemircili?= Date: Fri, 30 Aug 2013 12:16:48 +0200 Subject: [PATCH] New lsof cheat --- cheatsheets/lsof | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cheatsheets/lsof b/cheatsheets/lsof index 2f4ddcc..6b7beef 100644 --- a/cheatsheets/lsof +++ b/cheatsheets/lsof @@ -1,2 +1,5 @@ -# To find listening ports +# To find listening ports: lsof -Pnl +M -i4 + +# To find which program is using the port 80: +lsof -i TCP:80 \ No newline at end of file