For Big Sur and later:
sudo lsof -i -P | grep LISTEN | grep :$PORT |
Where $PORT is the port you are looking for. Ex: 3306
For Big Sur and later:
sudo lsof -i -P | grep LISTEN | grep :$PORT |
Where $PORT is the port you are looking for. Ex: 3306
First launch the Terminal app, located in the Utilities folder under Applications, or just hit Cmd + Space and type “Terminal“.
Type (copy & paste) the command below:
defaults delete com.apple.dock; killall Dock |
Then hit return.
Your Dock will now be new as the day it shipped. You are free to mess it up again 🙂