List TCP connections which are in LISTEN state : lsof -P -iTCP -sTCP:LISTEN List MAC addresses on a local network (192.168.0.0/24) : sudo arp-scan 192.168.0.0/24 Reboot camera : sudo killall VDCAssistant Sort file by size in a directory (need gsort from brew) : du -h -d 1 | gsort -h ````