linux which process is using a port 1

linux which process is using a port

$ sudo netstat -ltnp | grep ':80' 

Here is what the above code is Doing:
1. netstat -ltnp:
-l: only show listening sockets
-t: only show TCP sockets
-n: don’t resolve names
-p: show the PID and name of the program to which each socket belongs
2. grep ‘:80’:
Filter the output to only show lines containing ‘:80’

Similar Posts