Skip to content

Instantly share code, notes, and snippets.

@vhbui02
Last active May 1, 2023 08:38
Show Gist options
  • Save vhbui02/fbe4135af94f27b9923f4dd185bfc0b9 to your computer and use it in GitHub Desktop.
Save vhbui02/fbe4135af94f27b9923f4dd185bfc0b9 to your computer and use it in GitHub Desktop.
[netstat command] I can never remember these options :v #linux

Options

-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment