Check port with lsof command

When you need to install a new packet (e.g: Jira, Jenkins, apache2, etc) . You should check ports is available or not. The below I will show you the way to check port with lsof command

In Ubuntu, you and install LSOF with command: