macOS - Networking Notes
networksetup -listallnetworkservices
networksetup -setv6off "USB 10/100/1G/2.5G LAN"
1
2
3
4
| macnst (){
netstat -Watnlv | grep LISTEN | awk '{"ps -o comm= -p " $9 | getline procname;colred="\033[01;31m";colclr="\033[0m"; print colred "proto: " colclr $1 colred " | addr.port: " colclr $4 colred " | pid: " colclr $9 colred " | name: " colclr procname ; }' | column -t -s "|";
141
}
|