Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
tutorials:findinghelp [2011/04/30 13:07]
clemens created
tutorials:findinghelp [2011/04/30 13:09]
clemens
Line 15: Line 15:
 Where can you find them? It's pretty simple. Think of a command. (ls, rm, chmod, kill, grep) or a program (vi, mutt, snarf, majordomo) So go ahead, type Where can you find them? It's pretty simple. Think of a command. (ls, rm, chmod, kill, grep) or a program (vi, mutt, snarf, majordomo) So go ahead, type
  
-"​% ​man //command//"+  * man //command//
  
 command being the name of the command you want to learn about. As you can see, manpages are broken down into sections. We'll use mkdir as an example. command being the name of the command you want to learn about. As you can see, manpages are broken down into sections. We'll use mkdir as an example.
  
-"​% ​man mkdir"+<​code>​ 
 +man mkdir
  
   MKDIR(1) ​               NetBSD General Commands Manual   MKDIR(1) ​               NetBSD General Commands Manual
Line 63: Line 64:
   NetBSD 2.0.2                   ​January 25, 1994                   ​NetBSD   NetBSD 2.0.2                   ​January 25, 1994                   ​NetBSD
   2.0.2   2.0.2
 +</​code>​
  
 For our "​mkdir"​ command, the man page displayed has six sections: NAME, SYNOPSIS, DESCRIPTION,​ EXIT STATUS, SEE ALSO, and STANDARDS. The NAME section simply shows the name of the command and a terse description of its function. The SYNOPSIS gives a brief outline of the command syntax, so you can see what the command you enter should look like. Items in square brackets [ ] are optional. The DESCRIPTION section provides a detailed description of how the command works, including information on the various options or modes of the command. The EXIT STATUS section describes what status codes are generated by the command when it completes (successfully or unsuccessfully). These codes can be read by programs (such as a shell script) to determine how to react to the command'​s result. SEE ALSO provides cross referencing information for related commands or others which may be helpful. And finally, the STANDARDS section lists information on which standards this particular command complies with. For our "​mkdir"​ command, the man page displayed has six sections: NAME, SYNOPSIS, DESCRIPTION,​ EXIT STATUS, SEE ALSO, and STANDARDS. The NAME section simply shows the name of the command and a terse description of its function. The SYNOPSIS gives a brief outline of the command syntax, so you can see what the command you enter should look like. Items in square brackets [ ] are optional. The DESCRIPTION section provides a detailed description of how the command works, including information on the various options or modes of the command. The EXIT STATUS section describes what status codes are generated by the command when it completes (successfully or unsuccessfully). These codes can be read by programs (such as a shell script) to determine how to react to the command'​s result. SEE ALSO provides cross referencing information for related commands or others which may be helpful. And finally, the STANDARDS section lists information on which standards this particular command complies with.
Line 80: Line 82:
 In some cases, the same topic will appear on more than one section of the manual. For example, there is a chmod user command and a chmod() system call. How would you find the appropriate manpage? You can tell man which section you'd like to look under. If you wanted to find the user command you would type: In some cases, the same topic will appear on more than one section of the manual. For example, there is a chmod user command and a chmod() system call. How would you find the appropriate manpage? You can tell man which section you'd like to look under. If you wanted to find the user command you would type:
  
-"​% ​man 1 chmod"+  * man 1 chmod
  
 This would display the manpage for the user command chmod. References to the specific sections are traditionally placed in parenthesis after the command name like so: chmod(1) This would display the manpage for the user command chmod. References to the specific sections are traditionally placed in parenthesis after the command name like so: chmod(1)
Line 86: Line 88:
 Well, this is all fine and good if you know the name of the command, but what if you can't remember the name? 'man -k' can be used to search for keywords in the command descriptions. So, if you want to find a mail program you would type: Well, this is all fine and good if you know the name of the command, but what if you can't remember the name? 'man -k' can be used to search for keywords in the command descriptions. So, if you want to find a mail program you would type:
  
-"​% ​man -k editor"+  * man -k editor
  
 A list of commands with the keyword "​editor"​ in their descriptions will be presented on the screen. A list of commands with the keyword "​editor"​ in their descriptions will be presented on the screen.
Line 106: Line 108:
 helpThe SDF help system.faqA collection of frequently asked questions. Type 'g ' to enter a topic, '​l'​ to list the questions in the topic, and 't ' to read the FAQ. The FAQ is also available [[faq|on the SDF website]].helpdeskIf you cannot find your answer in the man pages, help, faq, or googling post a question to the helpdesk and a friendly member of the community will answer your question. Any member with ARPA status can login as an attendent to answer questions. Please note: in helpdesk you should only post questions directly related to SDF's systems, but not about general UNIX, programming or gardening - these belong to the bboard!bboardcomCom and bboard are meeting places for the SDF community. You could also pose your question there. Bboard and faq have the same interface. See [[tutorials/​comnotirc|COM is not IRC]] for how to use com. helpThe SDF help system.faqA collection of frequently asked questions. Type 'g ' to enter a topic, '​l'​ to list the questions in the topic, and 't ' to read the FAQ. The FAQ is also available [[faq|on the SDF website]].helpdeskIf you cannot find your answer in the man pages, help, faq, or googling post a question to the helpdesk and a friendly member of the community will answer your question. Any member with ARPA status can login as an attendent to answer questions. Please note: in helpdesk you should only post questions directly related to SDF's systems, but not about general UNIX, programming or gardening - these belong to the bboard!bboardcomCom and bboard are meeting places for the SDF community. You could also pose your question there. Bboard and faq have the same interface. See [[tutorials/​comnotirc|COM is not IRC]] for how to use com.
  
-And of course there are the online tutorials that you are reading right now! The top level page is http://​sdf.lonestar.org/​index.cgi?​tutorials.+And of course there are the online tutorials that you are reading right now! The top level page is [[tutorials:tutorials]].