Linux help commands.
Online, built-in help is available for (nearly) every command in /sbin, /bin, /usr/bin and /usr/sbin
manman is short for manual pages. Running
man foowill display the manual pages for the command foo (if they exist). The man pages are an excellent way to recall the particular flags used for different commands. For example, the
lscommand is a commonly used command with more flags under the hood. <snip 3 pages> The ls man page is about 4 screens long.
man taris 9 screens.
man lsofis 40 screens long and ends with a list of SEE ALSO man pages!
- Sometimes additional man pages are listed with a number in parentheses. man is divided into various sections. So a listing to see mount(8) means section 8 of man for the command mount which is entered as
man 8 mountand has 23 screens of information.
infoinfo is a newer method of displaying built-in "HowTo" information. The GNU project likes info over man so being able to use both is essential.
info mountwill display similar information to
man mountbut it's displayed very differently. Some sections are links and you can move to them directly with the [LIN:Tab] key. Pressing enter jumps to those links. A colorized version of info that many people find easier to navigate with is pinfo. It uses the j,k keys for down and up on the links keywords like vi uses the j,k keys.
The q key will exit the environment of both man and info/pinfo