diff --git a/cheatsheets/netstat b/cheatsheets/netstat index caba5be..72fbc07 100644 --- a/cheatsheets/netstat +++ b/cheatsheets/netstat @@ -3,3 +3,9 @@ sudo netstat -lnptu # To view routing table (use -n flag to disable DNS lookups): netstat -r + +# Which process is listening to port +netstat -pln | grep | awk '{print $NF}' + +Example output: 1507/python +