How to check for listening ports in Linux

Here is one of the most popular commands for troubleshooting network or specific application problems on Linux

sudo netstat -tunlp
  • -t – Display TCP ports.
  • -u – Display UDP ports.
  • -n – Display numerical addresses instead of resolving hosts.
  • -l – Display only listening ports.
  • -p – Display the program name / PID owning the socket


More Articles

How to start a new Github repo from an existing project

Assume that you have a project and you want to track it with Github. Navigate to the project folder,...

codezilla

codezilla

How to get octal file permissions from command line?

Sometimes we want to know the octal number representing the permission of a file like 755, 777, 664 ...

codezilla

codezilla