Page MenuHomeFreeBSD

Add example to list listening sockets
ClosedPublic

Authored by lukas.engelhardt_gmx.de on Jul 12 2025, 3:47 PM.
Tags
None
Referenced Files
F129996384: D51280.id.diff
Thu, Sep 25, 6:26 PM
Unknown Object (File)
Tue, Sep 23, 11:09 PM
Unknown Object (File)
Sun, Sep 21, 10:50 AM
Unknown Object (File)
Sun, Sep 21, 2:28 AM
Unknown Object (File)
Wed, Sep 17, 9:16 AM
Unknown Object (File)
Tue, Sep 16, 2:40 AM
Unknown Object (File)
Sun, Sep 7, 5:09 PM
Unknown Object (File)
Tue, Sep 2, 8:31 AM
Subscribers

Details

Summary

Simple netstat command i use very often, added to the examples section.
Also added broken up two lines that exceeded 80 bytes.

Test Plan

apply the patch
check the output of

mandoc -Tlint /usr/src/usr.bin/netstat/netstat.1

see changed man page with

man /usr/src/usr.bin/netstat/netstat.1

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Minor nit, missing : at end of sentence.

usr.bin/netstat/netstat.1
951

Missing a colon at the end here.

Can we remove the prompts? It breaks copy/paste. Also, for single line examples, try using .Dl instead, it's a lot cleaner.

Please use src/tools/tools/git/git-arc.sh or upload your patch with -U9999 so we have more context available.

removed leading "$" in front of commands
added ":" to the new example

I am sorry, but i haven't got the format-patch to work like i would like it to, i need to learn how to do that. will ask tomorrow at the berlin hackathon if someone can show me how it's done

This revision is now accepted and ready to land.Jul 12 2025, 10:21 PM