Networking Notes - ipatch/theairportwiki GitHub Wiki
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