Broken Man Pages: whatis Returns Nothing Appropriate
The laborant user is trying to use shell help tools to study for their RHCSA exam,
but something is wrong on rocky-01.
Every time they run whatis or apropos, they get the same useless response:
$ whatis ls
ls: nothing appropriate.
$ apropos "list directory"
list directory: nothing appropriate.
Even man -f ls returns nothing. The man ls command itself opens a page fine,
but the search and lookup tools are completely broken.
Investigate, diagnose, and fix the problem so that whatis, apropos, and man -f
all return meaningful results again.
Hint 1 — Where to start
The whatis and apropos commands rely on a pre-built database of man page descriptions.
Check whether that database exists on this system.
Hint 2 — Where the database lives
Look inside /var/cache/man/ — this is where the man page index database is stored.
If it is empty or missing, that explains why lookups fail.
Hint 3 — How to rebuild it
The command sudo mandb scans all installed man pages and rebuilds the index database.
Check the troubleshooting table in the how-to guide for the exact command.