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