Digital Marketing

Linux: Check Which Port Number a Process is Listening on

$ sudo ss -ltnp
  • l: display only listening sockets
  • t: display tcp connection
  • n: display addresses in a numerical form
  • p: display process ID/ Program name
$ sudo lsof -i :80
This command will list all processes using TCP port number 80.


Popular posts from this blog

MySQL Sandbox with the Sakila sample database