How to Determine if a Port is Available in Linux

Lots of good approaches on quickly determining if a Linux Port is available for that new site you're throwing up in this StackOverflow thread. I locked in on the approach listed below, with 9001 being the port I want to use. If nothing is returned, you're good to go!

netstat -lnt | awk '$6 == "LISTEN" && $4 ~ ".9001"'
Posted April 05, 2017 05:14 PM EDT

More Like This Post