There are many through which you can check the port status like Nmap, netstat, ss, or lsof, and We will take an example of each command.