On Tue, 26 Mar 2019, Todd Zullinger wrote:
Robert P. J. Day wrote:
> however, i recently installed the package "containers-common", which
> installed (among other things) the single man page file under
> /usr/share/man/man5:
>
> /usr/share/man/man5/containers-storage.conf.5.gz
>
> with that installed, both of the following commands work fine and
> generate the same output:
>
> $ man 5 containers-storage.conf
> $ man 5 storage.conf
>
> but i see no "shortcut" file in that directory to support the second
> form, so i'm assuming there is some other mechanism by which this can
> be done, i just don't know what it is. thoughts?
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.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca/dokuwiki
Twitter:
http://twitter.com/rpjday
LinkedIn:
http://ca.linkedin.com/in/rpjday
========================================================================