netstat command to check listening ports in linux code example Example: netstat command in linux to check specific port netstat -tulpn | grep :80