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.

Comments

Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership