The Computer Oracle

List of all available man pages

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Romantic Lands Beckon

--

Chapters
00:00 List Of All Available Man Pages
00:12 Accepted Answer Score 60
00:26 Answer 2 Score 16
00:37 Answer 3 Score 5
00:56 Answer 4 Score 2
01:22 Answer 5 Score 1
01:56 Thank you

--

Full question
https://superuser.com/questions/207450/l...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #commandline #bash

#avk47



ACCEPTED ANSWER

Score 60


Use:

apropos .

or:

man -k .

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




ANSWER 2

Score 16


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

For example to show all section 2 pages:

$ man -k . -s 2



ANSWER 3

Score 5


Here's my favourite:

whatis -r .

… and if you just want to see all the man pages in a particular section use the -s flag.

For example, if you just wanted to get a list of all man pages for all executable commands (section 1):

whatis -s 1 -r .



ANSWER 4

Score 2


# Shell script to list pathname of all available man pages  
mandirs="\`man -w | sed 's/:/ /g'\`"  
find $mandirs -type f  

This produces a list of all man files, using the list of man directories that is produced by "man -w", however, cYrus's any-character-regex solution is much better, pipe though awk to get a clean list of just the page names:

apropos . | awk '{print $1}'

or

man -k . | awk '{print $1}'



ANSWER 5

Score 1


On macOS, you can use

man -k .

or

apropos .

or

whatis .

However, on macOS, the man -k, apropos and whatis commands do not support filtering by section.

So, you can use the following pipeline to do that

man -k . | grep \(1\) | less

You can replace 1 with the manual section of your choice.