How to Check If a Port is Being Used on a Terminal