$ lsof -n -i4TCP:$PORT | grep LISTEN $ lsof -n -iTCP:$PORT | grep LISTEN $ lsof -n -i:$PORT | grep LISTEN