List of all available man pages

How to generate a list of all available man pages on a system?


Solution 1:

Use:

apropos .

or:

man -k .

where . is a regex that means: "any character".

Solution 2:

$ man -k . -s <section-NR>

For example to show all section 2 pages:

$ man -k . -s 2