How to check port occupied in Linux
- lsof -i : port number . lsof (list open files) is a tool to list open files on the current system.
- netstat -tunlp | grep port number . Netstat command is used to display various network related information, such as network connection, routing table, interface status (Interface Statistics), masquerade connection, multicast membership (Multicast Memberships) and so on.