Haikson

[ Everything is possible. Everything takes time. ]

How to check busy ports on Linux

If, when starting an application, you receive errors indicating that port X is busy, here is a port checking script to help you

#/bin/bash
filter=${1:-""}
netstat -tulpn | awk -vq="$filter" -vOFS='\t' '$0!~q{next} /^tcp/{print $4,$7} /^udp/{print $4,$6}'