Originally published at: https://www.cyberciti.biz/faq/unix-linux-check-if-port-is-in-use-command/
How do I determine if a port is in use under Linux or Unix-like system? How can I verify which ports are listening on Linux server? How do I check if port is in use on Linux operating system using the CLI?