What it does
Some tools, mainly the GNU tools (coreutils, bash, grep, sed, tar), have a full manual in info format. It is longer than the man page and split into nodes (chapters) with links.
Keys in info: Space = next page, n/p = next/previous node, u = up, Enter on a link = follow it, l = back, s = search, q = quit. pinfo is a friendlier viewer with colors (when it is installed).
The exam objectives name "man, info and /usr/share/doc": know where to look.
How to write it
info [OPTION]... [MENU-ITEM...]
pinfo [OPTIONS] [INFO-PAGE]Options 13
Most used
Nothing matches this filter.
Examples 11
$ run as a normal user# run as root (or with sudo)
1Open the coreutils manual
info coreutilsAll basic commands (ls, cp, sort …) in one manual with chapters.
2Open the part about one command
info coreutils 'ls invocation'Goes straight to the node about ls.
3Search all info indexes
info -k "time style"Lists the nodes where the topic is explained.
4Read the bash manual
info bashThe complete Bash reference: expansions, built-ins, variables.
5Save a chapter as text
info coreutils 'sort invocation' -o sort.txtRead it later or add it to your notes.
6Find where an info manual lives
info -w grep /usr/share/info/grep.info.gzShows the file and the package documentation.
7Use pinfo for easier navigation
pinfo tarArrow keys and Enter follow links;
qquits.8Open the GNU sed manual for regex details
info sed 'Regular Expressions'The info manual explains BRE and ERE better than the man page.
9Look for extra documentation files
ls /usr/share/doc/chrony/Many packages add examples and README files in /usr/share/doc.
10Find documentation files of a package
rpm -qd openssh-serverLists the documentation files that the package installed.
11Use info when the man page is short
Many GNU man pages end with "Full documentation … or available locally via: info '(coreutils) ls invocation'".
Nothing matches this filter.
Watch out
- Not every tool has an info manual. If none exists,
info NAMEshows the man page instead. - Minimal installs may miss the
infopackage; install it withdnf install info.
Files
/usr/share/info/- The info manuals.
/usr/share/doc/- Extra documentation, examples and READMEs per package.
Tips to remember
- man = short and exact. info = long and with chapters. /usr/share/doc = examples.