• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

mandb Command Examples in Linux

by Deepika

“mandb” is a command used in Unix-like operating systems for managing the manual page (man) database. The man pages are pre-formatted manual pages that provide information about system commands and tools.

The mandb command updates the man page database to ensure that it contains the latest information about the installed software and commands. This is done by scanning the directories specified in the MANPATH environment variable and creating or updating the database with the information found in the man pages.

Using the mandb command can be useful in situations where new software is installed or existing software is updated and new man pages are added. By running mandb, you can make sure that the man page database is up-to-date and the latest information is available to users.

mandb Command Examples

1. Purge and process manual pages:

# mandb

2. Update a single entry:

# mandb --filename path/to/file

3. Create entries from scratch instead of updating:

# mandb --create

4. Only process user databases:

# mandb --user-db

5. Do not purge obsolete entries:

# mandb --no-purge

6. Check the validity of manual pages:

# mandb --test

Filed Under: Linux

Some more articles you might also be interested in …

  1. aws lightsail Command Examples
  2. consul: Distributed key-value store with health checking and service discovery
  3. aws codecommit: AWS CodeCommit is a managed source control service that hosts private Git repositories
  4. caja Command Examples in Linux
  5. How to install/remove/query/update RPM packages in Linux (Cheat Sheet)
  6. do-release-upgrade: command not found
  7. Basic vim commands (cheat sheet)
  8. eslint: A pluggable linting utility for JavaScript and JSX
  9. “git am” Command Examples
  10. cuyo: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright