Gems from the man page trenches (2016)
saminiir.com
Gems from the man page trenches (2016)
1–10 of 28 posts
Re: Gems from the man page trenches (2016)
#2Re: Gems from the man page trenches (2016)
#3A few years ago I learned that one can also add a new section to man. I've added the `eg` section, which I fill with examples that I think will be useful to future me. For example, typing `man eg awk` opens up my man page of examples for awk, which is more pointed.
Re: Gems from the man page trenches (2016)
#4http://man.openbsd.org/scan_ffs
The basic operation of this program is as follows:
1. Panic. You usually do so anyways, so you might as well get it over with. Just don't do anything stupid. Panic away from your machine. Then relax, and see if the steps below won't help you out.Re: Gems from the man page trenches (2016)
#5I love man pages. But it took me many years before I realized how easy it is to write man pages for tools that I write (and further, I write in markdown and pandoc happily translates them to troff for me). A few years ago I learned that one can also add a new section to man. I've added the `eg` section, which I fill with examples that I think will be useful to future me. For example, typing `man eg awk` opens up my m…
Re: Gems from the man page trenches (2016)
#6Re: Gems from the man page trenches (2016)
#7My favorite man page is scan_ffs. http://man.openbsd.org/scan_ffs The basic operation of this program is as follows: 1. Panic. You usually do so anyways, so you might as well get it over with. Just don't do anything stupid. Panic away from your machine. Then relax, and see if the steps below won't help you out.
Re: Gems from the man page trenches (2016)
#8 Sharp and newline surround comments.
I think from a old awk man page?Re: Gems from the man page trenches (2016)
#9My favorite man page is scan_ffs. http://man.openbsd.org/scan_ffs The basic operation of this program is as follows: 1. Panic. You usually do so anyways, so you might as well get it over with. Just don't do anything stupid. Panic away from your machine. Then relax, and see if the steps below won't help you out.
Ha. I wasn't familiar with scan_ffs, so I googled it. Given what it does, or purports to do, yeah, a first step of "Panic" makes total sense. Reminds me of something which happened early in my career. An older, wiser coworker came by and said, "You won't believe what I almost did. I was installing a new disk on cyclops (our main NFS server), and I almost typed 'newfs /dev/sda' instead of 'newfs /dev/sdb'" (this was o…
Re: Gems from the man page trenches (2016)
#10If you create and distribute an executable for linux/unix, and you don't create a man page for it, you are committing a crime against humanity.
https://eddieantonio.ca/blog/2015/12/18/authoring-manpages-i...