https://bash-prompt.net/guides/lsof/
https://stackoverflow.com/questions/12397175/how-do-i-close-an-open-port-from-the-terminal-on-the-mac
___
1. Find out the process ID (PID) which is occupying the port number (e.g., 5955) you would like to free:
```bash
lsof -i TCP:8080 | grep LISTEN
```
2. Kill the process which is currently using the port using its PID:
```bash
kill PID
```
**Tags**: #terminal #ports #to-be-completed