lsof -i -P | grep -i “listen” is netstat -lnap|grep “LISTEN”
Category Archives: os
Redirect output to a file without buffering on linux/mac?
https://serverfault.com/questions/294218/is-there-a-way-to-redirect-output-to-a-file-without-buffering-on-unix-linux This buffers stdout up to a line: This disables stdout buffering altogether: This disables stdout buffering altogether:
From strace to dtruss
https://8thlight.com/blog/colin-jones/2015/11/06/dtrace-even-better-than-strace-for-osx.html