From 6762bae8666f543ead4d1f098e5c02d735133ff7 Mon Sep 17 00:00:00 2001 From: ImmortalPC Date: Wed, 13 Nov 2013 23:07:00 +0100 Subject: [PATCH] Add warning on netstat: netstat is deprecated and add the new command. --- cheatsheets/netstat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cheatsheets/netstat b/cheatsheets/netstat index c479fae..d932ab2 100644 --- a/cheatsheets/netstat +++ b/cheatsheets/netstat @@ -1,3 +1,5 @@ +# WARNING ! netstat is deprecated. Look below. + # To view which users/processes are listening to which ports: sudo netstat -lnptu @@ -11,3 +13,16 @@ Example output: 1507/python # Fast display of ipv4 tcp listening programs sudo netstat -vtlnp --listening -4 + +# WARNING ! netstat is deprecated. +# Replace it by: +ss + +# For netstat-r +ip route + +# For netstat -i +ip -s link + +# For netstat-g +ip maddr