check if a port number is in use using netstat code example Example: netstat check port sudo netstat -plnt