Table of Contents

Locate Read And Use System Documentation Including Man Info And Files In Usr Share Doc

General Information

Using various documentation sources.


man pages

Index man page database

mandb


Search man page title and description only

man -k vim


Search man page documentation for keyword (title, description, and pages)

apropos passwd


Open specific man page section

man 5 passwd

info utility

Search Info Pages for “tee”

pinfo --apropos tee
 
"(coreutils)tee invocation" -- tee


Open the tee section of coreutils

pinfo coreutils tee

Other locations for documentation

Documentation store for installed programs

Search system for keywords

updatedb
locate passwd


Show location of binary

which passwd


Search man page descriptions only

whatis passwd


Find binary, source files, config files, and man page locations

whereis passwd


Search documenation installed

rpm -qd packagename

Finding Files With Locate And Find

Locate

Search cache database for patterns, very fast, but simple pattern searching.

Install package

yum install mlocate


Update cache database

updatedb


Find files/folders called “syslog”

locate syslog

Find

Real time searching. Slower, but more flexible.

Find files/directories with motd in the name

find / -name motd


Find, starting in /, all files (type f) owned by rjones

find / -user rjones -type f


Remove all files owned by rjones

find / -user rjones -type f -exec rm '{}' \;


Find all files modified in the last 3 days

find / -mtime -3 -type f