mandb
Quick Reference
Command Name:
mandb
Category:
system management
Platform:
linux
Basic Usage:
Common Use Cases
- 1
Manual database
Update the manual database for faster command lookup
- 2
Performance
Improve the speed of manual page searches
- 3
System maintenance
Keep the manual database up-to-date
- 4
Scripting
Use in shell scripts to update the manual database programmatically
Syntax
mandb [OPTION...]
Options
Option | Description |
---|---|
-c, --create | Create index databases if they don't exist |
-d, --debug | Print debugging information |
-f, --force | Forcefully reindex all entries, even if already up to date |
-q, --quiet | Run quietly, producing no warnings |
-s, --no-straycats | Don't process catpages that don't have source files |
-t, --test | Test run, just show what would be done |
-u, --user-db | Create a private user database only |
-p, --no-purge | Don't purge obsolete entries from the database |
--help | Display help information |
--usage | Display a short usage message |
Examples
How to Use These Examples
The examples below show common ways to use the mandb
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
mandb
Update the manual page index caches for all directories specified in the man-db configuration file.
sudo mandb
Run with superuser privileges to ensure all manual page directories can be processed.
mandb -c
Check for consistency between the database and the filesystem, reporting any problems.
Advanced Examples:
mandb -f
Force recreation of all database entries, even if already up to date.
mandb -t
Create database caches for manual pages in all directories in the manpath (Test run).
mandb -q
Run quietly, showing only error messages.