Linux command
mandb 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Update
mandb
Example
mandb --filename [path/to/file]
Create
mandb --create
Example
mandb --user-db
Don't purge
mandb --no-purge
Test
mandb --test
说明
mandb creates and updates the manual page index caches. These caches are used by man and apropos to quickly find manual pages. It scans the manual page directories and builds a database of page names and descriptions.
参数
- --filename FILE
- Update single file entry
- -c, --create
- Create database from scratch
- -u, --user-db
- Process only user databases
- -p, --no-purge
- Don't purge obsolete entries
- -t, --test
- Test validity without updating
- -q, --quiet
- Suppress warnings
- -d, --debug
- Print debugging information
FAQ
What is the mandb command used for?
mandb creates and updates the manual page index caches. These caches are used by man and apropos to quickly find manual pages. It scans the manual page directories and builds a database of page names and descriptions.
How do I run a basic mandb example?
Run `mandb` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --filename FILE do in mandb?
Update single file entry