mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
Add warning on netstat: netstat is deprecated and add the new command.
This commit is contained in:
parent
3b48257b45
commit
6762bae866
@ -1,3 +1,5 @@
|
|||||||
|
# WARNING ! netstat is deprecated. Look below.
|
||||||
|
|
||||||
# To view which users/processes are listening to which ports:
|
# To view which users/processes are listening to which ports:
|
||||||
sudo netstat -lnptu
|
sudo netstat -lnptu
|
||||||
|
|
||||||
@ -11,3 +13,16 @@ Example output: 1507/python
|
|||||||
|
|
||||||
# Fast display of ipv4 tcp listening programs
|
# Fast display of ipv4 tcp listening programs
|
||||||
sudo netstat -vtlnp --listening -4
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user