https://jvns.ca/blog/2026/03/10/examples-for-the-tcpdump-and-dig-man-pages/ #manpages #programming #humor #HackerNews #ngated
Examples for the tcpdump and dig man pages
https://jvns.ca/blog/2026/03/10/examples-for-the-tcpdump-and-dig-man-pages/
#HackerNews #tcpdump #dig #manpages #networking #examples #techblog
Do you want to write manpages but the strange manpage language is just too much? All mysterious looking ".Op Fl v Pf = Ar baz", whatever that means? This is your moment: lowdown v3.0.0, just released, has support to properly convert manpage-like Markdown to idiomatic mdoc.7 and man.7 output. It's described in https://kristaps.bsd.lv/lowdown/mdoc.html. Focus on your code, and let lowdown handle the docs. Full link: https://kristaps.bsd.lv/lowdown
(Salacious intro aside, this has been a long piece of development; and yes, it makes me a little sad, because mdoc.7 is a format I enjoy. But let's face it: sticking to mdoc.7 (or worse, man.7) is a losing battle. We can do better!) #unix #manpages
💯!
“Notes On Clarifying Man Pages”, Julia Evans (https://jvns.ca/blog/2026/02/18/man-pages/).
On HN: https://news.ycombinator.com/item?id=47065972
On Lobsters: https://lobste.rs/s/zpifkh/notes_on_clarifying_man_pages
<https://github.com/freebsd/freebsd-src/blob/main/CONTRIBUTING.md#style> mentions the one-sentence-per-line rule for manual pages, however:
a) there's no such rule in mdoc(7) <https://man.freebsd.org/cgi/man.cgi?query=mdoc&sektion=7&manpath=freebsd-current> or style.mdoc(5) <https://man.freebsd.org/cgi/man.cgi?query=style.mdoc&sektion=5&manpath=freebsd-current>; and
b) I frequently see multiple lines for a single sentence – is this simply because authors and reviewers happily ignore a rule?
A random pick, from a very recently changed page:
– the longest line is 78 characters.
FreeBSD style aside, Debian man-pages(7) suggests a source code line length of no more than about 75 characters wherever possible: <https://manpages.debian.org/trixie/manpages/man-pages.7.en.html#Conventions_for_source_file_layout>.
). Also, maybe my favourite thing after having to deal with WSL and also trying to program on the steam deck, #ManPages work!!!!A great read for anybody interested in documentation on *nix systems