2fa7a75ffa4a1636c95167a3e240a70fff35183d
[ikiwiki.git] / docs / handbook / handbook-basics-more-information.mdwn
1 ## For More Information 
2
3 ### Manual Pages 
4
5 The most comprehensive documentation on DragonFly is in the form of manual pages. Nearly every program on the system comes with a short reference manual explaining the basic operation and various arguments. These manuals can be viewed with the `man` command. Use of the `man` command is simple:
6
7     % man command
8
9 `command` is the name of the command you wish to learn about. For example, to learn more about `ls` command type:
10
11     % man ls
12
13 The online manual is divided up into numbered sections:
14
15
16   1. User commands.
17   1. System calls and error numbers.
18   1. Functions in the C libraries.
19   1. Device drivers.
20   1. File formats.
21   1. Games and other diversions.
22   1. Miscellaneous information.
23   1. System maintenance and operation commands.
24   1. Kernel internals.
25
26
27
28 In some cases, the same topic may appear in more than one section of the online manual. For example, there is a `chmod` user command and a `chmod()` system call. In this case, you can tell the `man` command which one you want by specifying the section:
29     
30
31     % man 1 chmod
32
33
34 This will display the manual page for the user command `chmod`. References to a particular section of the online manual are traditionally placed in parenthesis in written documentation, so [chmod(1)](http://leaf.dragonflybsd.org/cgi/web-man?command=chmod&section=1) refers to the `chmod` user command and [chmod(2)](http://leaf.dragonflybsd.org/cgi/web-man?command=chmod&section=2) refers to the system call.
35
36 This is fine if you know the name of the command and simply wish to know how to use it, but what if you cannot recall the command name? You can use `man` to search for keywords in the command descriptions by using the `-k` switch:
37
38    
39
40     % man -k mail
41
42
43 With this command you will be presented with a list of commands that have the keyword ***mail*** in their descriptions. This is actually functionally equivalent to using the `apropos` command.
44
45 So, you are looking at all those fancy commands in `/usr/bin` but do not have the faintest idea what most of them actually do? Simply do:    
46
47     % cd /usr/bin
48     % man -f *
49
50 or
51    
52
53     % cd /usr/bin
54     % whatis *
55
56 which does the same thing.
57
58
59
60 ### GNU Info Files 
61
62 DragonFly includes many applications and utilities produced by the Free Software Foundation (FSF). In addition to manual pages, these programs come with more extensive hypertext documents called `info` files which can be viewed with the `info` command or, if you installed  **emacs** , the info mode of  **emacs** . To use the [info(1)](http://leaf.dragonflybsd.org/cgi/web-man?command=info&section=1) command, simply type:
63
64
65     % info
66
67 For a brief introduction, type `h`. For a quick command reference, type `?`.