Robert P. J. Day wrote: > On Tue, 26 Mar 2019, Todd Zullinger wrote: >> AFAIK, man finds 'storage.conf' because it is the title of >> the man page. So it's not actually an alias. >> >> $ zcat /usr/share/man/man5/containers-storage.conf.5.gz | head -n1 >> .TH "storage.conf" "5" " Container Storage Configuration File" "Dan >> Walsh" "May 2017" > > i saw that as the included title and actually thought, "could it > just be picking up the title in the page itself?" and i thought, "nah, > it must be something more elegant." so that's it? huh. I can't say I know the full rules used by the man command, but the title and the name fields are indexed by mandb and then used when you pass a page to the man command. You can use the --debug (-d) option to man to get a lot more detail about how it finds a page, usually combined with the --where (-w) option to simply show the location of the man page source. Something like: man -d -w 5 storage.conf |& less -- Todd
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx