<?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 &#124; Latest Tech News, Software And Tutorials &#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 news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Edit Linux man pages with gmanedit</title><link>http://www.ghacks.net/2010/06/04/edit-linux-man-pages-with-gmanedit/</link> <comments>http://www.ghacks.net/2010/06/04/edit-linux-man-pages-with-gmanedit/#comments</comments> <pubDate>Fri, 04 Jun 2010 17:19:04 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[documentation]]></category> <category><![CDATA[man pages]]></category> <category><![CDATA[manual]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26161</guid> <description><![CDATA[I can&#8217;t tell you how many times I have used a man page only to find either an error (due to author not updating) or that the man page itself was confusing and needing my own personal tweaking. Now, if you are unsure as to what a man page is, you should know that Linux [...]]]></description> <content:encoded><![CDATA[<p>I can&#8217;t tell you how many times I have used a man page only to find either an error (due to author not updating) or that the man page itself was confusing and needing my own personal tweaking. Now, if you are unsure as to what a man page is, you should know that Linux is installed with numerous help files for just about every command and/or program installed on your machine. To access a man (short for &#8220;manual&#8221;) page you would simply issue the command <em>man APPLICATION </em>Where APPLICATION is the name of the command or application you want to run.</p><p>Of course man pages are written in a format called troff. It&#8217;s not overly complicated and something you can easily get used to. But some times you don&#8217;t need to know the format to make a few minor changes. I have used this system many times to make notes in man pages (so when/if I have to refer back to them I don&#8217;t have to depend upon a fading memory) that aren&#8217;t necessary for all users (otherwise I would submit them to the maintainer). Now, after reading this article (and thanks to gmanedit), you will be able to edit your Linux man pages as well.</p><p><span
id="more-26161"></span><br
/> <strong>Installation</strong></p><p>As you would expect, installation is simple. All you have to do is follow these steps:</p><ol><li>Open up your Add/Remove Software utility.</li><li>Search for &#8220;gmanedit&#8221; (no quotes).</li><li>Select gmanedit for installation.</li><li>Click Apply to install.</li></ol><p>There may be some dependencies to meet for the installation. But more than likely you will already have those met. Now, let&#8217;s get to using this handy tool.</p><p><strong>Usage</strong></p><div
id="attachment_26174" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/06/gmanedit1.png"><img
class="size-medium wp-image-26174 " src="http://www.ghacks.net/wp-content/uploads/2010/06/gmanedit1-500x415.png" alt="" width="300" height="249" /></a><p
class="wp-caption-text">Figure 1</p></div><p>In order to edit/save man pages you will have to open up gmanedit with root privileges. So open it up from command line by either first <em>su</em>&#8216;ing<em> </em>to root or using <em>sudo</em>. The command to start is <em>gmanedit. </em>When you open up gmanedit you will see a fairly minimal interface. Although it looks like a standard, basic text editor, there is a bit more under the hood than that. For instance, the man pages you will be editing are typically in the tar.gz form. And by using this tool you do not have to unpack the files, edit the files, and repack the files. You simply open them, edit them, and save them.</p><p>The first tiny hiccup you might encounter is that, when you go to open up a man page, you won&#8217;t know where to look. Fear not&#8230;man pages are housed in <strong>/usr/share/man</strong>. Within that directory you will see numerous sub-directories. The directories you want to focus on are manX (Where X is a number). The only downfall of this system is that you might have to poke around within those directories to find the man page you need. Once you find the page, and have it open, it will look like that in Figure 1.</p><p>Obviously you will see the troff formatting &#8211; which might make you want to turn away. But &#8211; when you see the standard wording of the man page you might see sections you want/need to change. All you need to do is make your changes and save the man page. Now when you issue the man command your changes will be there.</p><p><strong>Final thoughts</strong></p><p>At first you might not see the handi-ness of this system, but after you use it for a while you will see how nice it is to be able to put your own personal notes within man pages &#8211; or be able to help the maintainers of man pages with issues.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/04/edit-linux-man-pages-with-gmanedit/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <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> ]]></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>
