When searching the short descriptions and manual page for a keyword, the man utility may return an empty set, for example:
# man -k ndctl
ndctl: nothing appropriate.
If you built ndctl from source, the man page indexes may not have been automatically generated for you. Additionally, if you installed ndctl to a non-default location, your $MANPATH shell environment variable may not been updated to point to to the new man page locations.
# manpath -g
/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/X11R6/man:/opt/man
# echo $MANPATH
#
# export MANPATH=$MANPATH:<path_to_ndctl_man_pages>
# sudo mandb -c
This command may take a few minutes depending on the number of search paths and man pages it has to index. The output is verbose as it scans and indexes. Once complete, it will provide a summary:
...
118 man subdirectories contained newer manual pages.
10550 manual pages were added.
0 stray cats were added.
man -k ndctl
will now work as expected, eg:# man -k ndctl
ndctl (1) - Manage "libnvdimm" subsystem devices (Non-volatile Memory)
ndctl-check-labels (1) - determine if the given dimms have a valid namespace index block
ndctl-check-namespace (1) - check namespace metadata consistency
ndctl-clear-errors (1) - clear all errors (badblocks) on the given namespace
...
Disclaimer
Copyright© kb.pmem.io 2020. All rights reserved.Document ID
100000021Creation Date
2020-03-11Copyright© kb.pmem.io 2020. All rights reserved.