-a
: display all active connections, including those in LISTEN state
-n
: don't resolve names (display addresses and port numbers in numerical format, rather than resolving them to host and service names)
-p, --programs
: display PID/Program name for sockets.
-l, --listening
: display listening server sockets.
-t
: filter TCP ports
-u
: filter UDP ports