alt.hn

4/6/2026 at 9:39:17 AM

Number in man page titles e.g. sleep(3)

https://lalitm.com/til-number-in-man-page-titles-e-g-sleep-3/

by thunderbong

4/6/2026 at 11:10:11 AM

If you like man trivia (and why else would you be reading this?) you could check out the top comment at https://unix.stackexchange.com/questions/405783/why-does-man...

(discussed at https://news.ycombinator.com/item?id=27994194)

by mjlee

4/6/2026 at 3:52:36 PM

Another fun related one: If your username is Tyler and you run shutdown, instead of the usual message it will say "Oh, good morning Mr. Tyler, going down?"

Discovered this in college when I was shoulder surfing a coworker who always used the username Tyler. When he typed shutdown I called it out, and he said, "wait, it doesn't do that for you? I always assumed it said that for everyone and just replaced the username!".

(For those of you too young to know, it's a reference to an Aerosmith song)

by jedberg

4/7/2026 at 6:23:40 AM

This was removed years ago from sysvinit, for political reasons.

by hulitu

4/6/2026 at 12:49:23 PM

"The developer of the man-db, Colin Watson, decided that there was enough fun and the story won't get forgotten"

Haha! Adequate amount of fun was provided, please resume regular man activities.

by qiine

4/6/2026 at 11:14:01 AM

Reading this makes me wonder if Easter eggs are ever appropriate for something as ubiquitous as man.

by porise

4/6/2026 at 1:57:26 PM

Personally I think ubiquitous software is even more important to have Easter eggs, because they're the most widely distributed, and we want as much joy as we could possibly have, before you know.

by embedding-shape

4/6/2026 at 12:44:07 PM

Easter eggs are always appropriate but it is imperative (and important) to understand how they could affect anything and everything.

Which means you need to usually make it explicit to call them (man --abba or something) than something that "surprises" the user.

by bombcar

4/6/2026 at 3:53:55 PM

Almost everything had an easter egg in it back in the day. When computing was more fun and less serious.

They fell out of favor when people realized they were a security issue, because it was a code path that rarely got tested.

by jedberg

4/6/2026 at 4:23:09 PM

No, proper easter eggs don't introduce security issues, they're benign almost by definition. I think what made them disappear was the introduction of all the suit-wearing people who decide what the programmers are supposed to program, with no room for autonomous work within that.

by embedding-shape

4/6/2026 at 4:26:56 PM

> proper easter eggs don't introduce security issues

Proper code doesn't either, and yet there they are! The point is they added another attack surface, however small, and another code path that should be tested.

When people started to care about 100% test coverage, they started to disappear.

by jedberg

4/6/2026 at 4:31:14 PM

> The point is they added another attack surface, however small, and another code path that should be tested.

I dunno, "attack surface" to me means "facilitate opening/vulnerability somehow" and none of the easter egg code I've seen has done that. You have any concrete examples where a easter egg made possible a security vulnerability that wouldn't be possible otherwise?

But yes, another code path created by easter eggs that wasn't tested I've seen countless of times, but never been an issue, but maybe our easter eggs always been too small in scope for that.

by embedding-shape

4/6/2026 at 4:22:39 PM

Or they were removed for other reasons than security.

In Star Trek: 25th Anniversary, we had a hidden animation of Captain Kirk's toupee jumping off his head and running out of the room. It was caught before release and they made us take it out since no one wanted to piss off William Shatner.

by xoxxala

4/6/2026 at 9:12:41 PM

It should make you wonder instead about the appropriateness of testing over man(1) output, I suppose unless you're actually generating the format for use as man(1) input, in which case congratulations on your functional tests doing their job!

by throwanem

4/6/2026 at 4:14:22 PM

A great innovation over simple AB testing

by cozzyd

4/6/2026 at 11:16:46 AM

> (... less common section numbers)

One very important section number is 5 - it's for file formats. So if you forget the crontab format, you need to invoke `man 5 crontab` to read about it.

by gerikson

4/6/2026 at 12:14:16 PM

... because if you do `man crontab` you get section 1, which does not document the crontab fields.

by linsomniac

4/6/2026 at 12:54:11 PM

In fact, the only reference to crontab(5) is in the SEE ALSO section (on my version anyway), but that doesn't say why you might want to see crontab(5), just that it exists. That is spectacularly useless

by voidUpdate

4/6/2026 at 3:06:32 PM

> That is spectacularly useless

Depends. If one is aware of the meaning of section numbers, that "(5)" is very obviously suggesting that there is a file format named "crontab" which is documented. It's also pretty reasonable to suppose that the command and the file format of the same name are related.

A novice might miss the convention and the connection. Man pages are not quite novice material.

by inejge

4/7/2026 at 7:21:44 AM

Maybe they could update man files so that it lists crontab(file format) instead of crontab(5)? Whenever I've seen numbered man pages in the past, I thought it was just a page number in the manual for the program

by voidUpdate

4/6/2026 at 3:41:51 PM

Hell, you don't even have to have a handle on what the section numbers mean for these things to be useful. The appearance of something in a "SEE ALSO" section indicates that the manual page author thought that that thing was both related to the thing being documented and worth reading if the current man page didn't answer all of your questions.

I can't count the number of times that following the trail laid out by 'SEE ALSO' sections a step or three has lead me to the exact thing that I never knew I needed to be using. Chasing those sections down is almost always well worth the three to ten minutes spent.

And, like, if one is expecting a man page to cover in detail everything even vaguely related to what it documents, and one doesn't feel one has ten minutes to spend reading things that people thought were important to bring to your attention... well, I guess one could go ask an LLM to slop out some related words. That'll probably take less than ten minutes, though correctness is not at all guaranteed.

by simoncion

4/6/2026 at 12:22:33 PM

That is incredibly stupid. A documentation system designed by someone who doesn't understand how people use documentation.

If man was designed by someone with any taste at all it would at least give you a menu to select (1) crontab command, (5) crontab file format. Maybe we need a rewrite in Rust to fix that.

by IshKebab

4/6/2026 at 1:50:16 PM

> If man was designed by someone with any taste at all it would at least give you a menu [...]

My goodness. Man was written on a paper teletype.

by ajross

4/6/2026 at 4:14:10 PM

And since man pages could take minutes to print out, if you needed one you'd tear that section of paper off and keep it in a binder for future (and faster) reference.

by SoftTalker

4/6/2026 at 9:39:52 PM

So? That didn't stop `man -a`.

by IshKebab

4/6/2026 at 12:46:43 PM

Or a minor alteration to an existing program to support a good suggestion.

Why is it that the Rust community thinks that the solution to every flaw in an application is a rewrite in Rust?

by bpt3

4/6/2026 at 2:12:52 PM

It might be more helpful to write a Rust-based snark detector first.

by mattkrause

4/6/2026 at 3:18:32 PM

Could be, but I don't think so in this case given a cursory review of the parent poster's history.

by bpt3

4/6/2026 at 9:33:37 PM

Programs these old are controlled by people who are very strongly opposed to change, even if it improves things. They like living in the 80s.

I absolutely guarantee if you propose this change the the GNU neckbeards who control man they will come up with some bullshit technical reason why it can't be done.

by IshKebab

4/8/2026 at 11:58:58 AM

GNU has its own documentation format called 'info'.

by gerikson

4/7/2026 at 6:33:12 AM

> even if it improves things.

odds are, it doesn't.

by hulitu

4/7/2026 at 7:28:40 AM

Exactly the sort of response I would expect to this very clear improvement.

by IshKebab

4/6/2026 at 11:05:11 PM

>If man was designed by someone with any taste at all

man was designed at a time you likely can't conceive of.

Can you even imagine designing something that's being actively used and talked about a HALF CENTURY later?

by linsomniac

4/6/2026 at 2:41:15 PM

There are a multitude of manpagers and viewers and frontends. It's one of those things you can write yourself very easily.

by t-3

4/7/2026 at 11:14:11 AM

Any that have this feature? I did try batman but it only replaces the pager; not the man frontend which is where this change would need to happen.

by IshKebab

4/8/2026 at 3:28:07 PM

Not that I know of, but I haven't looked. I have written a similar program for pulling arm64 instruction pages (which have many duplicates), the whole thing is under 100 lines, and most of that is printing and file IO that would be handled by the manpager, the actual finding dups and presenting a menu is even simpler.

by t-3

4/6/2026 at 4:55:07 PM

It seems it has been done already a while ago without waiting for the rust community to do their usual churn.

https://imgur.com/a/kEkmRxx (link shows a screenshot of khelpcenter showing the different manpages available for crontab)

by LtWorf

4/6/2026 at 9:35:00 PM

Really? I can't see your image (thanks UK government) but if I type `man crontab` in a recent Ubuntu it just shows crontab(1).

by IshKebab

4/6/2026 at 10:57:51 PM

He said "khelpcenter", not "man".

by linsomniac

4/7/2026 at 7:29:32 AM

Ok well we were discussing man, not khelpcenter, so that seems irrelevant...

by IshKebab

4/7/2026 at 11:03:11 PM

We were discussing replacing man, so a replacement that does as requested is very relevant.

by yjftsjthsd-h

4/6/2026 at 6:06:24 PM

I hope this was just some over the top sarcasm.

by dualvariable

4/6/2026 at 9:31:55 PM

No of course not. Why do you hope that?

by IshKebab

4/6/2026 at 1:05:00 PM

It does that, depending on implementation.

by rascul

4/7/2026 at 6:30:30 AM

> Maybe we need a rewrite in Rust to fix that.

And maybe we need some versions: man version 1, man version 2 and so on. And of course, in the style of GTK, each one incompatible with all the others. Progress. /s

by hulitu

4/6/2026 at 1:41:45 PM

man -k crontab is the real trick here. shows both sections so you don't have to already know the number exists.

by driftcoder

4/6/2026 at 2:11:56 PM

It only shows a description though.

Incidentally, man --help on my machine shows "-k, --apropos equivalent to apropos", which isn't very useful. I know the two are equivalent, because they're on the same line of switches, what does it actually do?

With some further man digging, apropos is actually a separate program that looks through man page names/descriptions for the argument. Unless you run it with no arguments, in which case it just outputs "apropos what?" Instead of an actual error message like "No search term provided" or something

by voidUpdate

4/6/2026 at 3:47:57 PM

> Incidentally, man --help on my machine shows "-k, --apropos equivalent to apropos", which isn't very useful.

That's your hint to execute either 'man apropos' or 'man man'. Both tell you in detail what the flag and utility do.

You seem likely to be very disappointed in the '-h'/'-H' output of utilities from the BSD tradition. The output is often a list of all of the (almost always exclusively short) options presented as a sea of characters... and nothing else.

by simoncion

4/7/2026 at 7:20:04 AM

I mean, most of the -h/--help texts I've read are generally pretty good. Obviously not a full documentation for the program, but they tell you what the switches do. I wish there was a consensus on whether to use -h or --help though

by voidUpdate

4/6/2026 at 4:14:34 PM

Remarkable that no one yet here, including the article author, reports the true origin of these section numbers: they identified (depending on section size, one or a group of) physical binders in the series published by AT&T to document System V UNIX, and when you got an update to your system software, it came with a package of new manual pages which you would physically install in the binders to replace the now-superseded older versions. Everything you hate about man pages is in consequence of that origin, and of the corollary that the online version was never designed to be authoritative.

I have one of those physical binders, a volume of Section 3 for an AT&T 3B2, in the software section of my library downstairs. A beautiful artifact in every respect, of the level of quality you would imagine in the manual for a machine that cost $15,000 in the 80s.

by throwanem

4/6/2026 at 1:55:29 PM

My favorite piece of man trivia is from the source of the tunefs BSD man page, which contains:

    .\" Take this out and a Unix Daemon will dog your steps from now until
    .\" the time_t's wrap around.
    .Pp
    You can tune a file system, but you cannot tune a fish.
https://github.com/freebsd/freebsd-src/blob/main/sbin/tunefs...

by beej71

4/6/2026 at 3:02:59 PM

You can tune a fish, it's that the command for that is fish_config instead.

by pwdisswordfishy

4/6/2026 at 2:00:30 PM

I guess the joke is you can scale a file system or a fish, but can only tune a file system?

by gmassman

4/6/2026 at 2:02:41 PM

Tuna is a type of fish so the joke is that they sound the same.

by fragmede

4/6/2026 at 4:11:37 PM

There was also the record You Can Tune a Piano, but You Can't Tuna Fish by REO Speedwagon, I had assumed that's what the tunefs man page was referencing as that was a best-selling record at around the time Unix was being developed.

by SoftTalker

4/6/2026 at 4:15:54 PM

Yes. It had been a popular joke in the US, I believe about a generation before. (Probably the joke came in around the same time as canned tuna.)

by throwanem

4/6/2026 at 11:07:00 AM

I looked up what the numbers mean a couple of times, but always forget it immediately

by kykat

4/6/2026 at 2:13:42 PM

Section meaning varies somewhat widely by *nix flavor.

by burnt-resistor

4/6/2026 at 11:50:36 AM

Interestingly, the section doesn't actually have to start with a number. TCL man pages use the 'n' section and 'man' resolves them just fine despite the ambiguity. Conversely, manpage names can also start with numbers, although this is rare (I found only one such example: man 30-systemd-environment-d-generator)

by PhilipRoman

4/6/2026 at 3:52:51 PM

Thousands of keystrokes saved by not having to type “man syscall”… and millions of hours lost by confused folks like OP (and myself)

by et1337

4/6/2026 at 7:07:37 PM

Luckily hours lost by the incompetent don't amount to much.

by casey2

4/7/2026 at 5:43:43 AM

Needless obscurity is not a virtue

by nicbou

4/6/2026 at 12:55:59 PM

For me man(3) is the most interesting of them all.

Run `apropos . | grep "(3)"`; you'll be surprised how many libraries come with man pages for their functions (e.g; curl).

Now I wonder if there are any IDEs that can automatically dial into these man pages and pull up documentation for functions?

by s20n

4/6/2026 at 4:22:06 PM

  apropos --sections=3 .
may be a better version of what you propose, depending on what you're looking for. On my system, this also gives me entries from sections like '3x' and '3ossl' and '3bsd'.

by simoncion

4/6/2026 at 2:13:03 PM

There's guaranteed to be some sort of context-sensitive man plugin for vim &| nvim for shell scripts.

Also, have you ever seen the DOS Borland IDE context sensitive help UX?

by burnt-resistor

4/6/2026 at 3:30:37 PM

I think for Vim, it’s “K”. But for emacs, you only need to use “m-x man” and have a nice viewer.

by skydhash

4/7/2026 at 4:48:12 PM

Cool. And GNU "info" is a hyperlinked doc viewer system. Some GNU and other projects promote info doc as more authoritative than man pages. Man pages are expanded cheat sheets.

For in-depth doc, I do appreciate docset-based indexed search apps like Dash that can download and update comprehensive doc locally with greater performance and less internet dependency than internet only. There's even vim and nvim plugins to bring that to them too without leaving the terminal.

by burnt-resistor

4/6/2026 at 10:42:49 AM

Step 1: Read `man man`

Step 2: Feel the urge to write an article about that

by LtWorf

4/6/2026 at 11:05:45 AM

I admire people who do that.

Writing down what you learn cements knowledge, and sharing what you write might help someone else.

by sakjur

4/6/2026 at 11:11:23 AM

Is there a man man man article that will explain how to read man man?

by Stratoscope

4/6/2026 at 12:46:41 PM

The full documentation for man is maintained as a Texinfo manual. If the info program is properly installed at your site, the command

              info man

Ah that crap is/was so rage inducing!

by bombcar

4/6/2026 at 6:27:25 PM

Note that this is contrary to the convention used in the Erlang community, where the number is used to disambiguate function definitions with different parameter counts, e.g. in https://www.erlang.org/docs/18/man/supervisor.html we see definitions of `start_link/2` and `start_link/3`.

It is a stylistic convention to always add this number to any reference to a function, even if there is only one definition.

by mbo

4/6/2026 at 1:36:37 PM

I'm feeling old now.

by pfdietz

4/6/2026 at 11:05:16 AM

Confession. I think I haven't read manpages since stackoverflow and certainly not since LLMs.

Perhaps the modern version of "man" should be a program you can talk to.

by amelius

4/6/2026 at 2:04:27 PM

That may "answer" a specific question. And all llms can do as they include manpages in training data (and any Agentic thing can search) however the value in reading documentation is that one can find different angles by learning about different options, which allow tontackle problems from a different perspective. The answer to a question is constrained by assumptions which are part of the question.

by johannes1234321

4/6/2026 at 2:57:08 PM

My experience with LLMs is that they often give me different angles that I didn't think of.

by amelius

4/6/2026 at 11:35:09 AM

Please no. I want to read the manual without having to talk to anything.

by xigoi

4/6/2026 at 4:15:58 PM

How do you think llms reply to you?

by LtWorf

4/6/2026 at 12:41:34 PM

It's called Claude. Or Gemini-cli. Or any other agent capable of running man.

"Hey <agent>, use `man` to help answer these questions about grep"

by Normal_gaussian

4/6/2026 at 11:09:55 AM

i have made llms read manpages, it is great lol

by nicman23