This script show you all the ports that are being reserved by other programs. It will be useful when you want to find an available range of ports.
Created
August 21, 2014 17:28
-
-
Save steinwaywhw/60434276e544199d52b0 to your computer and use it in GitHub Desktop.
One-liner to find out all ports being reserved in /etc/services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -v "^#" /etc/services | awk '{print $2 " " $1}' | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment