netstat

    Check listening ports

    netstat -tunlp
    

    Notes:

    • -t tcp
    • -u udp
    • -l only listening ports
    • -p Show the PID and name of the listener’s process