• 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. bcomps Command Examples (Decompose graphs into their biconnected components)
  2. blastn: command not found
  3. drill: Perform various DNS queries
  4. bfg Command Examples (Remove large files or passwords from Git history like git-filter-branch)
  5. How to Determine Which Process is Writing to Disk in Linux
  6. watch Command Examples in Linux
  7. cmark: Converts CommonMark Markdown formatted text to other formats
  8. mkfs.btrfs Command Examples in Linux
  9. How to disable FIPS mode on CentOS/RHEL 7
  10. CentOS/RHEL – How to run a script or command when any user logout the ssh session

You May Also Like

Primary Sidebar

Recent Posts

  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright