<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; man pages</title>
	<atom:link href="http://www.ghacks.net/tag/man-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 03:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get to know Linux: man pages</title>
		<link>http://www.ghacks.net/2009/07/02/get-to-know-linux-man-pages/</link>
		<comments>http://www.ghacks.net/2009/07/02/get-to-know-linux-man-pages/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:09:24 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Linux documentation]]></category>
		<category><![CDATA[man]]></category>
		<category><![CDATA[man pages]]></category>
		<category><![CDATA[manpages]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=14077</guid>
		<description><![CDATA[Have you ever had someone tell you to &#8220;RTFM&#8221; (aka: &#8220;Read The Flippin&#8217; Man page&#8221;) only to realize you have no idea what man pages were? &#8220;Man pages&#8221; is short for &#8220;Manual Pages&#8221; and exist for both UNIX and Linux operating systems. Each man page is a self-contained document that holds all of the key [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had someone tell you to &#8220;RTFM&#8221; (aka: &#8220;Read The Flippin&#8217; Man page&#8221;) only to realize you have no idea what man pages were? &#8220;Man pages&#8221; is short for &#8220;Manual Pages&#8221; and exist for both UNIX and Linux operating systems. Each man page is a self-contained document that holds all of the key bits of information you need to learn the basics of installed Linux commands and applications.</p>
<p>Of course the usefulness of a man page is dictated by the create of said page. Some man pages are an outstanding resource for learning about that particular application. Conversely, some man pages are fairly worthless. This article is not about discerning which man pages are worthwhile and which are not. This article will help you understand how best use the <em>man</em> command so you can make the most of this reference system.</p>
<p><span id="more-14077"></span><strong>Basic usage</strong></p>
<p>Using the <em>man</em> command is easy. The structure of <em>man </em>is:</p>
<p><em>man COMMAND_OR_APPLICATION</em></p>
<p>Where <em>COMMAND_OR_APPLICATION</em> is the command or the application you want to read about. But there are more ways to use the <em>man</em> command. If you issue the command <em>man man</em> you can read the <em>man </em>manpage (would that be a recursive command?).</p>
<p>There aren&#8217;t too many useful switches to use with the <em>man</em> command. There is one switch, in particular, that is helpful &#8211; the <em>k </em>switch. The <em>-k</em> switch will search the collective man pages for the string you declare. For example, if you want to search all of the man pages for anything containing &#8220;net&#8221; you could issue:</p>
<p><em>man -k net</em></p>
<p>Any man page containing the string &#8220;net&#8221; will appear as such:</p>
<p><code>tcpd []              (8)  - access control facility for internet services<br />
tcpdump []           (8)  - dump traffic on a network<br />
telnet []            (1)  - user interface to the TELNET protocol</code></p>
<p><strong>What man pages contain</strong></p>
<p>All man pages are supposed to follow the structure:</p>
<ol>
<li>Name: The name of the command or function with an included description.</li>
<li>Synopsis: This is a description of what the command does or what parameters the function takes (and what header file contains its definition.)</li>
<li>Description: A full description of the command or function.</li>
<li>Examples: Examples of common usage.</li>
<li>See Also: Related commands or functions.</li>
</ol>
<p>Although it might seem the fastest way to learn about a command is to skip immediately to the Description. This is often not the fastest means of learning a command. Often the Synopsis will give you the structure of the command usage. You need this information to know where the switches and/or options go in the command structure. So make sure you examine the Synopsis first. Once you know how the command works you can jump down tot he description which is where much of the commands switches and options will be explained.</p>
<p>Of course most of the time a man page will only contain the bare bones of the information you need. For some it takes a while to grow accustomed to sifting out the useful information from the man pages.</p>
<p><strong>Final thoughts</strong></p>
<p>Man pages are a great first place to look for information about a Linux/UNIX command/applicaiton or function. Many think the man page is antiquated, but there is still much to be learned from this simple information system. Give the man page a try so the next time someone says &#8220;RTFM&#8221; you can reply &#8220;I did, and I still am not sure what I am doing.&#8221; (or better yet &#8220;I did and now I know everything I need to know.&#8221;)</p>

	Tags: <a href="http://www.ghacks.net/tag/linux-documentation/" title="Linux documentation" rel="tag">Linux documentation</a>, <a href="http://www.ghacks.net/tag/man/" title="man" rel="tag">man</a>, <a href="http://www.ghacks.net/tag/man-pages/" title="man pages" rel="tag">man pages</a>, <a href="http://www.ghacks.net/tag/manpages/" title="manpages" rel="tag">manpages</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/07/02/get-to-know-linux-man-pages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
