man
man formats and displays the system reference manuals. It provides access to documentation for commands, system calls, library routines, file formats, and other operating system components
Display short description about a command
man -f chmod
Display all related commands from a specific keyword
man -k chmod
Show File System Hierarchy
man hier
Show a manual for any program
man screen
Example 1: Dump all available man pages
man -k . | awk '{print $1}' | sort -u
Example 2: Dump alla vailable man pages (posix friendly)
manpath | tr ':' '\n' |
while read -r p; do
find "$p" -type f -name '*.[0-9]*' -printf '%f\n'
done | sed 's/\.[^.]*$//' | sort -u
Dump manual page to stdout
man kbdinfo | col -bx
Copy a manual to your clipboard with xsel
man kbdinfo | col -bx | xsel --clipboard
Example 3: Dump all available man pages in a particular section"
find $(man --path | tr ':' ' ') -type f -path '*man2*' -exec basename {} \; | sed 's/\..*//' | sort