Who is listening my port

Time to time you run different stuff and forget to close it in a different terminal window. So the task is to understand which app occupied it

lsof -i :8080

Which ports are listen on my machine

netstat -an | grep LIST

Which ports have open connections

netstat -an | grep EST

Look for java processes on my machine

jps

Look for all processes on my machine

ps ax