<div dir="ltr"><div><div><div><div><div>Is it possible to generate a list of all commands that have man pages on a given Linux machine?  (Or at least a decent approximation of how many in each language?)<br><br></div>Are these all under /usr/share/man on Fedora-derived systems?  e.g. on this sample system I see 8 language-specific subdirectories below that {de, es, en, fr, pl, pt_BR, pt_PT, zh} and also 22 subdirectories that begin with "man" {such as man1, man1x, man1p, mann}.  The "man?x" directories are empty, and there are few "man?p" directories, but the "man?" directories seems quite full.<br><br></div><div>The following suggests 3581 man pages:</div><div><br></div>   ls /usr/share/man | grep .gz | sort | uniq<br><br>But many commands appears 3 times (e.g. chmod.1p.gz, chmod.2.gz, chmod.3p.gz) whereas others appear twice (e.g. encrypt.3.gz, encrypt.3p.gz) and yet others only once (e.g. cd.1p.gz).  So the following suggests 2544 man pages, if the above duplicate are not meaningful (or are they??)<br><br></div>   ls /usr/share/man | sed 's/\..*//' | sort | uniq<br><br></div>Finally, the following shows only 56 man pages in foreign languages:<br><br></div><div>   ls /usr/share/man/??/* /usr/share/man/??_??/* |  | sed 's/\..*//' | sort | uniq</div><div><br></div>Meager indeed, ah well.  Still, how do I display these man pages in other languages, anyone know?<br></div>