Ports

What are running on ports

sudo netstat -atup --numeric-ports

What is running on port NNNN

lsof -i :NNNN