2
1
On Linux (or any other OS that uses the man
tool), there are typically several sections of the manual. Often, a given entry (such as echo
or printf
) exists in multiple sections, but not all of them. Is there a simple way to check which sections of the manual that entry can be found in?
Obviously, one can try man [section] [entry]
and just run through every section in the manual, but honestly, I'm not even sure what the complete list of sections is (or how to find that definitively), and I'm looking for something a little less brute-force.
Thanks for the tip! Unfortunately,
whatis
returns eithernothing appropriate
ormanpath is null
(despite that it isn't) on the systems I'm using right now. And I've read that Wikipedia page before, but as it makes clear, different systems have different sections, and I'm not sure how to check which ones are present except by brute force. – patrickvacek – 2014-01-10T21:20:08.6631@patrickvacek, have to create the whatis database first with
makewhatis -w
(on Cygwin, it is in /usr/sbin). – Peon – 2014-01-10T21:37:38.670Oops, now it makes so much more sense. Thanks! – patrickvacek – 2014-01-10T22:08:48.303