Skip to content

man: netstat: add two examples#60

Open
jvns wants to merge 1 commit intoecki:masterfrom
jvns:examples
Open

man: netstat: add two examples#60
jvns wants to merge 1 commit intoecki:masterfrom
jvns:examples

Conversation

@jvns
Copy link

@jvns jvns commented Feb 23, 2026

I'm a long-time netstat user, but it took me a while to figure out what combination of flags would be useful to pass to netstat. I only ended up learning about "-tulpn" because a friend told me how they used netstat.

This adds a couple of examples of common ways to use netstat, so that future beginners can potentially learn about common patterns to use the tool from the man page instead of having to know someone, and so that infrequent users can use it as a quick reminder.

I also asked on Mastodon to do a little crowdsourcing of popular netstat options. I settled on -tulpn since it seems like a fairly common favourite.

Add an example of a couple of the most common was to use netstat.
The goal is to help beginners or infrequent users of the tool remember
the syntax.

Mention that -n is very useful option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant