Skip to content

Networking Notes

Chris edited this page Jan 30, 2018 · 3 revisions

Networking Commands to remember

To continuously listen to network connections

lsof -i -r 2 | grep -E "(LISTEN|ESTABLISHED)"

To list processes that are listening for open port

lsof -P | grep IPv | grep -v localhost
netstat

Working with nmap

To discover hosts on a local network

nmap -sP 192.168.2.1/24