mirror of
https://github.com/Erreur32/cheat.git
synced 2024-09-07 20:11:36 +02:00
12 lines
278 B
Plaintext
12 lines
278 B
Plaintext
# To view which users/processes are listening to which ports:
|
|
sudo netstat -lnptu
|
|
|
|
# To view routing table (use -n flag to disable DNS lookups):
|
|
netstat -r
|
|
|
|
# Which process is listening to port <port>
|
|
netstat -pln | grep <port> | awk '{print $NF}'
|
|
|
|
Example output: 1507/python
|
|
|