Re: how aliases for man pages are supported? [OT?]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I always understood that “man” ran a script which basically ran “nroff -man”

> On 26 Mar 2019, at 18:03, Todd Zullinger <tmz@xxxxxxxxx> wrote:
> 
> 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
> _______________________________________________
> 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
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux