Linux Hint published a tutorial about how to check If a port is in use in Linux.
How to Check If a Port Is in Use in Linux
At any single instance, multiple ports can be open in your system, so it can be useful to determine which ports are open. This article shows you four possible methods to use to check whether a port is in use in Linux.
How to Check If a Port Is in Use in Linux – Linux Hint