As far as I know, there is no standard recommendation for a user-writable man page directory. The Filesystem Hierarchy Standard 3.0 refers to the XDG Base Directory Specification and the xdg-user-dirs specification regarding things within users' home directories, but neither of those has anything specific to say about man page directories.
Classically, this is because adding your own man page directory tree to the MANPATH
environment variable used to be trivial. However, modern implementations of man
often leave the MANPATH
variable empty, and specify the man page directory hierarchies in e.g. /etc/manpath.config
or a similar configuration file.
For backwards compatibility, if the MANPATH
variable is set for these modern man
implementations, it tends to override the man page search path completely, rather than provide a way to add to it, which can be inconvenient: as a user, you would have to read and understand the appropriate configuration file, and first create a MANPATH value that completely covers all the system man pages you wish to keep available to you, and then add your own custom man page directory to a suitable spot within that ordered list. However, you would generally only need to do this once, unless there are major updates to the system software and/or directory structures, so it should not be that hard to do.
Overall, the classic convention seemed to be that if a directory of executables (suitable for adding to PATH
) were located at <some path>/bin/
or <some path>/sbin/
, the root of the corresponding man page hierarchy would be at <some path>/man/
respectively. However, FHS 3.0 already deviates from that by specifying /usr/share/man/
as the primary man page hierarchy for the system, corresponding to both /[s]bin/
and /usr/[s]bin/
executable directories.
--help
, similar togit help <cmd>
. – suvayu May 22 '23 at 10:11