sudo lsof -i -P | grep -i "listen"
Monthly Archives: September 2015
osx display nameserver via cmd line
[user@macmini ~]# scutil --dns | grep 'nameserver\[[0-9]*\]' nameserver[0] : 209.222.18.222 nameserver[1] : 209.222.18.218 nameserver[0] : 209.222.18.222 nameserver[1] : 209.222.18.218 nameserver[0] : 209.222.18.222 nameserver[1] : 209.222.18.218
Lookup ip address location via cmd
src: xmodulo.com
mybox:~ myuser$ curl ipinfo.io/96.120.61.113 { "ip": "96.120.61.113", "hostname": "No Hostname", "city": "Mount Laurel", "region": "New Jersey", "country": "US", "loc": "39.9340,-74.8910", "org": "AS7922 Comcast Cable Communications, Inc.", "postal": "08054", "phone": "856" }