<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Matt's pages</title>
	<atom:link href="http://mattchapman.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattchapman.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 02 Feb 2009 16:53:53 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mattchapman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a0e7cd0ae85d35037ab82162cfef1dfd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Matt's pages</title>
		<link>http://mattchapman.wordpress.com</link>
	</image>
			<item>
		<title>X programs</title>
		<link>http://mattchapman.wordpress.com/2009/01/03/x-programs/</link>
		<comments>http://mattchapman.wordpress.com/2009/01/03/x-programs/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 22:35:57 +0000</pubDate>
		<dc:creator>mattchapman</dc:creator>
				<category><![CDATA[X programs]]></category>

		<guid isPermaLink="false">http://mattchapman.wordpress.com/?p=26</guid>
		<description><![CDATA[Please note: I’m making these old files available here just in case they are still of interest to anyone.



Here are some programs I have written for 	  UNIX platforms running The X Window System, complete with 	  source code. Click on the images to get full size screenshots.
Source code



XScrabble
This is a full multiplayer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=26&subd=mattchapman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Please note: I’m making these old files available here just in case they are still of interest to anyone.</p>
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tbody>
<tr>
<td colspan="2">Here are some programs I have written for 	  UNIX platforms running The X Window System, complete with 	  source code. Click on the images to get full size screenshots.</td>
<td valign="bottom" bgcolor="#8bc5d6"><span style="color:#773300;"><strong>Source code</strong></span></td>
</tr>
<tr>
<td align="center"><a href="http://belgarath.gotdns.org:7070/~matt/programs/xscrabble_main.gif"><img src="http://belgarath.gotdns.org:7070/~matt/programs/xscrabble_main_sm.gif" border="0" alt="xscrabble_main.gif" width="126" height="128" /></a></td>
<td><span style="color:#773300;"><strong><a name="XScrabble">XScrabble</a></strong></span><br />
This is a full multiplayer (1-4) implementation of the 	  classic board game, with computer players, and over 118,000 	  word dictionary (the Official Scrabble Players Dictionary, 	  edition 3, as used in U.S. tournaments). There is a high 	  score table, a best single goes list, a handy setup window, 	  and load/save facilities. <span style="color:white;">NEW:</span> After four years, an updated version is now available which 	  contains a fix to work with newer versions of libXaw.</td>
<td bgcolor="#8bc5d6">Original version:<br />
<a href="http://belgarath.gotdns.org:7070/~matt/programs/xscrabble.tar.gz">xscrabble.tar.gz</a><br />
Size: 487K<br />
Last update: September 2001</p>
<p>French version, by Françoise Miane:<br />
<a href="http://belgarath.gotdns.org:7070/~matt/programs/xlescrabble.tar.gz">xlescrabble.tar.gz</a><br />
Size: 482K<br />
Last update: May 1999</td>
</tr>
<tr>
<td align="center"><a href="http://belgarath.gotdns.org:7070/~matt/programs/num.gif"><img src="http://belgarath.gotdns.org:7070/~matt/programs/num_sm.gif" border="0" alt="num.gif" width="117" height="110" /></a></td>
<td><span style="color:#773300;"><strong>XCountdown</strong></span><br />
Two player X version of the popular Channel 4 (UK) quiz 	  show.  Features all three rounds, with computer solutions, 	  and pictures of Carol!</td>
<td bgcolor="#8bc5d6"><a href="http://belgarath.gotdns.org:7070/~matt/programs/xcountdown.tar.gz">xcountdown.tar.gz</a><br />
Size: 413K<br />
Last update: May 1997</td>
</tr>
<tr>
<td align="center"><a href="http://belgarath.gotdns.org:7070/~matt/programs/xbikes.gif"><img src="http://belgarath.gotdns.org:7070/~matt/programs/xbikes_sm.gif" border="0" alt="xbikes.gif" width="100" height="94" /></a></td>
<td><span style="color:#773300;"><strong>XBikes</strong></span><br />
Very simple light cycles games for 2 to 6 players, using 	  UNIX sockets.</td>
<td bgcolor="#8bc5d6"><a href="http://belgarath.gotdns.org:7070/~matt/programs/xbikes.tar.gz">xbikes.tar.gz</a><br />
Size: 13K<br />
Last update: June 1997</td>
</tr>
<tr>
<td align="center"><a href="http://belgarath.gotdns.org:7070/~matt/programs/xtt.gif"><img src="http://belgarath.gotdns.org:7070/~matt/programs/xtt_sm.gif" border="0" alt="xtt.gif" width="56" height="72" /></a></td>
<td><span style="color:#773300;"><strong>Xtt</strong></span><br />
This program displays a weekly timetable, 	  a day at a time, and pops up warnings before a timetable entry 	  (a lecture or whatever).</td>
<td bgcolor="#8bc5d6"><a href="http://belgarath.gotdns.org:7070/~matt/programs/xtt.tar.gz">xtt.tar.gz</a><br />
Size: 13K<br />
Last update: May 1997</td>
</tr>
</tbody>
</table>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattchapman.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattchapman.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattchapman.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattchapman.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattchapman.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattchapman.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattchapman.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattchapman.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattchapman.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattchapman.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=26&subd=mattchapman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattchapman.wordpress.com/2009/01/03/x-programs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1dddd0ddbf59073a08a7fafe367dc09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattchapman</media:title>
		</media:content>

		<media:content url="http://belgarath.gotdns.org:7070/~matt/programs/xscrabble_main_sm.gif" medium="image">
			<media:title type="html">xscrabble_main.gif</media:title>
		</media:content>

		<media:content url="http://belgarath.gotdns.org:7070/~matt/programs/num_sm.gif" medium="image">
			<media:title type="html">num.gif</media:title>
		</media:content>

		<media:content url="http://belgarath.gotdns.org:7070/~matt/programs/xbikes_sm.gif" medium="image">
			<media:title type="html">xbikes.gif</media:title>
		</media:content>

		<media:content url="http://belgarath.gotdns.org:7070/~matt/programs/xtt_sm.gif" medium="image">
			<media:title type="html">xtt.gif</media:title>
		</media:content>
	</item>
		<item>
		<title>A Beginners Guide to UNIX®</title>
		<link>http://mattchapman.wordpress.com/2009/01/03/20/</link>
		<comments>http://mattchapman.wordpress.com/2009/01/03/20/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 14:32:32 +0000</pubDate>
		<dc:creator>mattchapman</dc:creator>
				<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://mattchapman.wordpress.com/2009/01/03/20/</guid>
		<description><![CDATA[
Please note: I&#8217;m reproducing this guide here in case it&#8217;s still useful to anyone.

This guide is Copyright ©1996 to Matt Chapman  &#38; Frankie Blaskovic &#8211; All Rights Reserved. UNIX is a registered trademark of AT&#38;T (Bell Laboratories) 


A Beginners Guide to UNIX®

Aims of this Guide
UNIX is a very powerful and popular operating system that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=20&subd=mattchapman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font size="-1"><br />
<span>Please note: I&#8217;m reproducing this guide here in case it&#8217;s still useful to anyone.<br />
</span><br />
<span>This guide is Copyright ©1996 to <a href="mailto:matt@belgarath.org">Matt Chapman </a> &amp; Frankie Blaskovic &#8211; All Rights Reserved. UNIX is a registered trademark of AT&amp;T (Bell Laboratories) </span><br />
</font></p>
<hr />
<h1>A Beginners Guide to UNIX®</h1>
<p><img src="http://belgarath.org/guide/intro.gif" alt="Introduction" /></p>
<h2>Aims of this Guide</h2>
<p>UNIX is a very powerful and popular operating system that is 	used by a significant proportion of the computer industry. Yet 	many perceptions of the computer centre around PCs, and the 	operating systems commonly run on them. Upon encountering UNIX, 	whether it be on a personal computer or a mainframe, confusion 	and frustration often results, causing UNIX to be branded as 	archaic and unfriendly. But this is only due to UNIX being a 	vastly more complex system, as it copes with multiple platforms, 	processors, disks, and brings truly platform independent 	computing to many users simultaneously. With a bit of patience 	and a bit of study, this monstrous beast can be tamed, and your 	experience with UNIX, for whatever purpose, can be an enjoyable 	and profitable one. And that&#8217;s where this guide comes in. It 	aims to get you over that initial hurdle, and on your way to 	greater things. But of course this is only a beginning. There 	are countless books which provide more extensive and advanced 	material, and you are advised to read one or more of these after 	this guide, should you wish to pursue your mastery of UNIX 	further. Just about any appropriately titled book will help you, 	but there are two which can be particularly recommended:</p>
<p>Graham Glass, <em>UNIX® for Programmers and Users, A 	  Complete Guide,</em> Prentice-Hall, Inc., 1993.<br />
Daniel Gilly, <em>UNIX in a Nutshell, a Desktop Quick 	  Reference,</em> O&#8217;Reilly &amp; Associates, Inc., 1992.</p>
<h2>Conventions Used</h2>
<p>Different styles are used to make certain parts of the text 	stand out. These adhere to the following conventions.</p>
<ul>
<li><span style="color:#aa0000;"><strong><kbd>Bold red keyboard style 		text</kbd></strong></span> is used for things you type 	  directly into your UNIX prompt.</li>
<li><span style="color:green;"><strong>Bold green sample style 		text</strong></span> is used for commands and 	  output.</li>
<li><strong>Bold text</strong> is used for key words and phrases.</li>
</ul>
<h2>About the Authors (as of 1996)</h2>
<p><a href="http://belgarath.org/">Matt Chapman</a> has recently graduated from the <a href="http://www.warwick.ac.uk/">University of Warwick,</a> UK,       with a Bachelor&#8217;s degree in Computer Science. He is now working       as a software developer for <a href="http://www.hursley.ibm.com/">IBM</a> based in       the IBM Centre 	for Java Technology in Hursley, UK. His other projects include 	a <a href="http://xwinman.org/">Window Managers for X</a> page, 	a Finite State Machine Explorer in Java, and a variety of small  games 	and utilities for X/UNIX platforms.</p>
<p>Frankie Blaskovic is a third year Law student at the <a href="http://www.warwick.ac.uk/">University of Warwick</a>. He 	is responsible for the University of Warwick 	Students&#8217; Union WebPages as well as for the Warwick Boar.  He 	is currently working on numerous projects, the most important 	of which is the managment of the New Technologies Programming 	Team in the UK. He is also active on many commercial web 	sites, keep a lookout!</p>
<hr /><img src="http://belgarath.org/guide/logging.gif" alt="Logging In &amp; Out" /></p>
<p>Commands covered in this section: <span style="color:green;">login logout su logname passwd</span></p>
<h2>First Steps</h2>
<p>In this section we will cover the basics you will need, logging in and out of the system. Before launching into this, please note that you will need to get a login name and a password  from you system administrator.<br />
Make sure that you type both your login name and password in the appropriate case, if your password is mik9998H and you type Mike9998H (or mike9998h, &#8230;), you won&#8217;t be able  to login.</p>
<hr />
<h2>Logging in</h2>
<p>When you are ready to start using a machine, you will initially see a prompt on screen like:<br />
<span style="color:green;"><kbd>login:</kbd></span><br />
type your login name. Then a prompt asking you to type your password in will be displayed. Type your password in as it was given to you. The password you type in will not be displayed on screen nor  any other characters, this is for security reasons so don&#8217;t worry if you don&#8217;t see anything just type it in and  press enter.<br />
If you have got it all right you should get a prompt with the name of your machine. You can now start using all the wonders of UNIX!!</p>
<hr />
<h2>Restarting your Login Shell</h2>
<p>You might at some point need to change your login environment variables (more on these later on), or even the login name you are using (you can only do this is you have more than one account on the system). To do this you would use the command login. A few restrictions apply to this command, to be able to execute it you must not be in a subshell (if you don&#8217;t know about subshells don&#8217;t worry you are most probably not using one). The syntax to use is:<br />
<span style="color:#dd0000;"><kbd>exec login <em>name</em></kbd></span><br />
where name is the new login name you want to use, if you just want to reinitialise your environment type your own login name.<br />
This new session will replace your former so that it will be as if this was the command you use to log into the system from the start.</p>
<hr />
<h2>Changing your Identity</h2>
<p>Using the login command to do this was discussed above. We would like to introduce a new command namely <span style="color:green;"><kbd>su. su</kbd></span> will allow you to login as another user but with the difference that you will be working in a subshell, so when you logout, you will resume your initial identity (whereas using login would log you out of the system altogether).<br />
<span style="color:green;"><kbd>su</kbd></span> (which stands for substitute user) is used by typing <span style="color:#dd0000;"><kbd>su <em>username</em></kbd></span>, where the username is the name of the new user you wish to use. By typing <span style="color:#dd0000;"><kbd>su - <em>username</em></kbd></span> (spaces before and after &#8211; are necessary) will allow you to work in a new shell (used by the user who&#8217;s identity you are assuming), along with that user&#8217;s environment set-up. However if you omit the &#8211; you will still be working in your original shell/set-up  but with the new user&#8217;s identity and privileges.<br />
<strong>Note:</strong>The <span style="color:green;"><kbd>su</kbd></span> command will not allow you to login without the new user&#8217;s password!!</p>
<hr />
<h2>Checking your Identity</h2>
<p>If at some point you want to see what login name you are using (during one of your logins) just type  <span style="color:#dd0000;"><kbd>logname</kbd></span> and your login name will be displayed.</p>
<hr />
<h2>Logging Out</h2>
<p>This is the important one! To logout (and terminate you session) simply type <span style="color:#dd0000;"><kbd>logout</kbd></span> at the prompt. This will log you out and make sure you have no processes running. An alternative to this command is to use the <span style="color:#dd0000;"><kbd>Ctl</kbd></span> and <span style="color:#dd0000;"><kbd>D</kbd></span> keys, it does exactly the same thing as would the <span style="color:green;"><kbd>logout</kbd></span> command.<br />
If you use <span style="color:green;"><kbd>logout</kbd></span> while using a subshell this will log you out of the subshell and not  out of the system. Always make sure you have logged out properly! Wait for the <strong>login prompt</strong> to be displayed again or if worst come to the worst reboot your machine.</p>
<hr />
<h2>Note on Passwords</h2>
<p>Changing your password is very important. You show change it at least once a month, and specially if people see you typing it in! Most systems require you to have a password of at least 6 characters long, and you should use numbers as well as symbols (<span style="text-decoration:underline;">eg:</span> us76.jh#q9*7$ ), make it as difficult as possible  to guess. If you are the luck owner of several accounts DO NOT use the same password for each!</p>
<hr />
<h2>Changing Passwords</h2>
<p>To change your password simply type <span style="color:#dd0000;"><kbd>passwd</kbd></span>, you will be asked to enter your old password and then to type in a new one twice. This is because, what you type will not be echoed on screen, so to make sure  you have typed it in properly you need to do it twice!<br />
If you have given a correct password and typed your new one in properly your password will be changed, if not, well start again!!<br />
You can also use <span style="color:#dd0000;"><kbd>passwd <em>username</em></kbd></span>. This will allow you to change the password for the user  specified by <em>username</em> (the same process applies as if you were changing your own).</p>
<hr /><img src="http://belgarath.org/guide/explore.gif" alt="Exploration" /></p>
<p>Commands covered in this section: <span style="color:green;"><strong>ls cd pwd cat more</strong></span></p>
<h2>The Filesystem</h2>
<p>UNIX employs a directory hierarchy, as illustrated in the 	picture below. The top of the hierarchy is known as the <strong>root 	  directory</strong> and is specified as <span style="color:green;"><strong>/.</strong></span> In the example shown the 	root directory contains three directories, which are 	<strong>sub-directories</strong> of the root. The <span style="color:green;"><strong>home</strong></span> directory is the 	<strong>parent</strong> of the two sub-directories <span style="color:green;"><strong>foo</strong></span> and <span style="color:green;"><strong>bar.</strong></span></p>
<p align="center"><img src="http://belgarath.org/guide/dir1.gif" alt="directory structure" /></p>
<p>An <strong>absolute filename</strong> is the full path of a file or 	directory, from the root of the hierarchy, given using the <span style="color:green;"><strong>/</strong></span> symbol (called a 	<strong>slash</strong> &#8211; specifically a <strong>forward slash</strong>) as the 	directory separator. So the absolute filename of the <span style="color:green;"><strong>bar</strong></span> directory is <span style="color:green;"><strong>/home/bar</strong></span>. A <strong>relative 	  filename</strong> is one without an initial <span style="color:green;"><strong>/</strong></span> which refers to a 	directory in relation to the current directory.</p>
<h2>What&#8217;s Inside?</h2>
<p>The most frequently used command in UNIX is <span style="color:green;"><strong>ls.</strong></span> It has many options, but 	on its own it simply shows the contents of the current 	directory, which may be directories or files. Try it now: simply 	type <span style="color:#aa0000;"><strong><kbd>ls</kbd></strong></span> at your command 	prompt. If you specify an argument to <span style="color:green;"><strong>ls</strong></span> it will take this to be a 	directory and will attempt to list the contents of that 	directory. Try entering <span style="color:#aa0000;"><kbd>ls 	    /</kbd></span> which will list the files and directories in the 	root directory. There will be some of the ones shown in the 	diagram, and many others.</p>
<p>The command <span style="color:green;"><strong>pwd</strong></span> tells you which directory you are in. If you haven&#8217;t changed 	directory since logging in, you should get something like <span style="color:green;"><strong>/home/fido,</strong></span> with your 	usercode in place of <span style="color:green;"><strong>fido.</strong></span> This directory is your 	<strong>home directory,</strong> and is the part of the filesystem 	reserved for you. In here you can create the files and 	directories required for whatever tasks you are engaged in.</p>
<h2>Moving Around</h2>
<p>You are always in a particular directory, referred to simply 	as the <strong>current directory.</strong> To change the current 	directory, the command <span style="color:green;"><strong>cd</strong></span> is used. It can take as 	an argument a directory, and will then move to this 	directory. So <span style="color:#aa0000;"><strong><kbd>cd /</kbd></strong></span> will 	move you to the root directory &#8211; try using <span style="color:#aa0000;"><strong><kbd>pwd</kbd></strong></span> and <span style="color:#aa0000;"><strong><kbd>ls</kbd></strong></span> to verify this. Typing 	<span style="color:#aa0000;"><strong><kbd>cd</kbd></strong></span> on its own will 	return you straight to your home directory, from wherever you 	are.</p>
<p>There are two important conventions employed when referring 	to UNIX directories. The first is a single dot: &#8220;<span style="color:green;"><strong>.</strong></span>&#8220;. This means &#8220;the 	current directory&#8221;. The second is two dots: &#8220;<span style="color:green;"><strong>..</strong></span>&#8220;, which means &#8220;the 	previous directory up in the hierarchy&#8221;, or &#8220;the parent 	directory of the current one&#8221;. Use <span style="color:green;"><strong>cd</strong></span> and <span style="color:green;"><strong>pwd</strong></span> to experiment with 	these. Start in your home directory, and work up the hierarchy 	by using <span style="color:#aa0000;"><kbd>cd 	    ..</kbd></span> repeatedly. What happens if you attempt to go above 	the root directory? Try and it see. You won&#8217;t get an error 	message, you just won&#8217;t go anywhere.</p>
<h2>What is it?</h2>
<p>The <span style="color:green;"><strong>-l</strong></span> option to 	<span style="color:green;"><strong>ls</strong></span> will give you a 	long listing of the contents of the directory. It includes such 	things as the size of files, the date and time they are last 	modified, and whether the item is a file or a directory &#8211; the 	first character of the output shows this: <span style="color:green;"><strong>d</strong></span> for a directory and <span style="color:green;"><strong>-</strong></span> for a regular file.</p>
<p>Experiment with the <span style="color:green;"><strong>ls</strong></span> and <span style="color:green;"><strong>cd</strong></span> commands until you find a 	regular file that is not too large. The contents of this file 	can then be examined in two ways. Firstly, the <span style="color:green;"><strong>cat</strong></span> command will simply 	output the entire file to the screen. It is called simply by 	typing <span style="color:#aa0000;"><strong><kbd>cat</kbd></strong></span> followed by 	the name of the file you wish to view. If the contents are more 	than a screenful, they go off the top of your window, so you 	miss some. If this is the case, the second command is best 	used. This is known as <span style="color:green;"><strong>more,</strong></span> and is called in the 	same way as <span style="color:green;"><strong>cat,</strong></span> but 	pauses after each screenful has been displayed. Simply press the 	spacebar to move on to the next page. Alternatively, you can 	press <span style="color:#aa0000;"><strong><kbd>q</kbd></strong></span> to quit the 	command, and stop the rest of the file being displayed.</p>
<hr /><img src="http://belgarath.org/guide/difference.gif" alt="Making a Difference" /></p>
<p>Commands covered in this section: <span style="color:green;"><strong>touch mkdir mv cp rm rmdir</strong></span></p>
<h2>A Word of Caution</h2>
<p>The previous section showed you how to move around the 	filesystem and examine text files. We will now show you how you 	can change things &#8211; the names of files, their location, and how 	to remove them. You can NOT do any damage to the system through 	use of the commands covered here, but you could lose your own 	files by accident if you are not careful. So if you have 	anything important, keep a copy of it &#8211; either somewhere else in 	your home directory, or (even better) on a secondary storage 	device, such as a floppy disk. Remember: there is NO undelete 	command under UNIX, although the system administrator should 	make regular backups, so it may be possible to retrieve lost 	files from these.</p>
<h2>Creating a File</h2>
<p>You may already have some files in your home directory to 	play around with, but don&#8217;t worry if you haven&#8217;t. The easiest 	way to create some is with the <span style="color:green;"><strong>touch</strong></span> command. Make 	sure you are in your home directory (type <span style="color:#aa0000;"><strong><kbd>cd</kbd></strong></span> to get there, and 	then <span style="color:#aa0000;"><strong><kbd>pwd</kbd></strong></span> to 	check). Now type <span style="color:#aa0000;"><strong><kbd>touch 	      rents</kbd></strong></span> which will create an empty file called 	<span style="color:green;"><strong>rents</strong></span> in the 	current directory. Use <span style="color:green;"><strong>ls</strong></span> to verify its 	existence, then use the <span style="color:green;"><strong>-l</strong></span> option to see that 	its size is 0 bytes. Look at the time and date column as well &#8211; 	this shows when the file was last modified, or in this case 	created. The <span style="color:green;"><strong>touch</strong></span> command has 	another use, when given a filename; it changes the modification 	time to the current time. Do <span style="color:#aa0000;"><strong><kbd>touch 	      rents</kbd></strong></span> again, then <span style="color:#aa0000;"><strong><kbd>ls -l</kbd></strong></span> or <span style="color:#aa0000;"><strong><kbd>ls -l rents</kbd></strong></span> to see the new 	modification time.</p>
<p>There are obviously many ways to create files, such as with 	text editors. These will be covered in a later section.</p>
<h2>Creating a Directory</h2>
<p>Directories are very useful for collecting related files 	together. The typical UNIX system contains many thousands of 	files. Imagine the mess if every one was contained in the same 	directory. You can too can use directories to organize your 	files. The <span style="color:green;"><strong>mkdir</strong></span> command is used to create new directories. Create one now, 	with <span style="color:#aa0000;"><strong><kbd>mkdir leith</kbd></strong></span> and 	use <span style="color:green;"><strong>ls</strong></span> to see it.</p>
<h2>Moving and Renaming</h2>
<p>This is all achieved with the <span style="color:green;"><strong>mv</strong></span> (short for move) 	command, which operates differently, depending on the arguments 	given to it. Many of these operations are illustrated in the 	examples below, which can be carried out in order using the 	files and directories created earlier. As before, use <span style="color:green;"><strong>ls</strong></span> to examine the 	effects of each command.</p>
<p>Rename a file:<br />
<span style="color:#aa0000;"><strong><kbd>mv rents forry</kbd></strong></span></p>
<p>Rename a directory:<br />
<span style="color:#aa0000;"><strong><kbd>mv leith hibs</kbd></strong></span></p>
<p>Move a file into a directory:<br />
<span style="color:#aa0000;"><strong><kbd>mv forry hibs</kbd></strong></span></p>
<p>Move it back into the current directory:<br />
<span style="color:#aa0000;"><strong><kbd>mv hibs/forry .</kbd></strong></span></p>
<h2>Making a Copy</h2>
<p>The copy command is <span style="color:green;"><strong>cp</strong></span>. Notice how 	most of the command UNIX commands are only two letters, to 	save some typing. Later you&#8217;ll see that there are many other 	ways in which the amount of typing you have to do can be 	reduced.</p>
<p>The copy command has two modes of operation; it can make a 	copy of a file under a new name, and it can make copies of a 	list of files and place the copies in a given directory. To 	illustrate this, we&#8217;ll need to create some more files, using 	<span style="color:green;"><strong>touch</strong></span> again.</p>
<p>Type this:<br />
<span style="color:#aa0000;"><strong><kbd>touch tommy franco 	      matty</kbd></strong></span></p>
<p>This creates three new files, all in one go. You don&#8217;t need 	to use three separate touch commands. This sort of thing can be 	done with most UNIX commands, and is another example of making 	things quicker to do.</p>
<p>Now we can make a copy of one of the files:<br />
<span style="color:#aa0000;"><strong><kbd>cp franco begbie</kbd></strong></span></p>
<p>Let&#8217;s make a copy of two of the files and place them in the 	<span style="color:green;"><strong>hibs</strong></span> directory:<br />
<span style="color:#aa0000;"><strong><kbd>cp tommy matty hibs</kbd></strong></span></p>
<p>Use <span style="color:green;"><strong>ls</strong></span> to 	verify that the files you have created are arranged like this:</p>
<p align="center"><img src="http://belgarath.org/guide/dir2.gif" alt="directory structure" /></p>
<h2>Removing things</h2>
<p>The remove, or delete, command is <span style="color:green;"><strong>rm</strong></span>. Related to 	this is the <span style="color:green;"><strong>rmdir</strong></span> command for 	deleting directories, but only if they are empty.</p>
<p>We&#8217;ll finish this session by removing all the files we 	created. It is important to know how to clean up your 	directories by removing unwanted files, otherwise they will 	become cluttered and you won&#8217;t be able to find things 	easily. Also, your home directory may be limited in the 	number and total size of files it can hold.</p>
<p>Remove two files:<br />
<span style="color:#aa0000;"><strong><kbd>rm forry tommy</kbd></strong></span></p>
<p>Attempt to remove the <span style="color:green;"><strong>hibs</strong></span> directory:<br />
<span style="color:#aa0000;"><strong><kbd>rmdir hibs</kbd></strong></span></p>
<p>You&#8217;ll get a <span style="color:green;"><strong>Directory not 	      empty</strong></span> error. You could delete all the files in 	it with <span style="color:green;"><strong>rm</strong></span>, and 	then use <span style="color:green;"><strong>rmdir</strong></span>, 	or you can use the <span style="color:green;"><strong>-r</strong></span> option to <span style="color:green;"><strong>rm</strong></span>, which 	<strong>recursively</strong> deletes all files and sub-directories in the 	given directory, and then the directory itself. Be careful with 	this command.</p>
<p>Delete the <span style="color:green;"><strong>hibs</strong></span> directory and 	its contents:<br />
<span style="color:#aa0000;"><strong><kbd>rm -r hibs</kbd></strong></span></p>
<p>Finally, remove the remaining files:<br />
<span style="color:#aa0000;"><strong><kbd>rm matty begbie</kbd></strong></span></p>
<hr /><img src="http://belgarath.org/guide/edit.gif" alt="Editing and Printing Files" /></p>
<p>Commands covered in this section: <span style="color:green;"><strong>emacs xemacs jove vi lpr lpq lprm</strong></span></p>
<h2>Editors</h2>
<p>The two main text editors available on most UNIX systems are       <span style="color:green;"><strong>emacs</strong></span> and <span style="color:green;"><strong>vi</strong></span>. In recent times,       <span style="color:green;"><strong>emacs</strong></span> has become       the most popular, due to its power and flexibility, whereas       <span style="color:green;"><strong>vi</strong></span> can seem       confusing to use, as it is rather unusual, although once mastered       many find it very quick to use.</p>
<h2>The Emacs Family</h2>
<p>Emacs is a powerful, extensible text 	editor. The name stands for <strong>E</strong>ditor <strong>Mac</strong>ro<strong>s</strong>, 	although some pretend it stands for <strong>E</strong>macs <strong>M</strong>akes 	<strong>A</strong> <strong>C</strong>omputer <strong>S</strong>low (it is so large it can be slow 	compared with more simple editors), or for <strong>E</strong>scape, 	<strong>M</strong>eta, <strong>A</strong>lt, <strong>C</strong>ontrol, <strong>S</strong>hift (in 	reference to the complex key sequences often required). Full 	versions of emacs come with packages written in Emacs-Lisp, 	which provide all manner of additional features, such as e-mail 	and news modes, and even a web browser mode. Also, different 	modes are usually supplied to aid the editing of different types 	of files, such as plain text, programming language source code, 	and TeX files. They can highlight different parts of the file in 	different colours or fonts, which can make the file easier 	to work with.</p>
<p>Due to its immense popularity in the UNIX world, <span style="color:green;"><strong>emacs</strong></span> has spawned       numerous flavours and clones. Three of the main ones are:</p>
<ul>
<li><span style="color:green;"><strong>Emacs</strong></span> &#8211; 	  the original.</li>
<li><span style="color:green;"><strong>Jove</strong></span> &#8211; a 	  simple, cut-down version, excellent for beginners.</li>
<li><span style="color:green;"><strong>XEmacs</strong></span> &#8211; 	  Emacs: The Next Generation. The biggest and the best. It has 	  full graphical user interface support, running under The X 	  Window System. (It was used to create this page, using an 	  advanced HTML mode.)</li>
</ul>
<p>All versions should come with extensive documentation and 	tutorials, which are obviously worthy of careful study if you 	intend using the program. However, a few basics will be 	covered here, to start you off. They should apply to all 	versions of <span style="color:green;"><strong>emacs</strong></span>.</p>
<p>To start up the editor, simply type its name. If you type a 	filename after it, it will attempt to load this file, and it 	if doesn&#8217;t exist it may create it. You can then enter 	some text straight into the editor window.</p>
<p>Commands are given to the editor through key combinations, 	although in some cases a mouse can be used to select 	operations from a menu bar. In describing key combinations, 	the following abbreviations will be used: <span style="color:green;"><strong>C-</strong></span> means hold the 	<span style="color:green;"><strong>Control</strong></span> key 	down and press the following key, so <span style="color:#aa0000;"><strong><kbd>C-g</kbd></strong></span> means press and 	hold the <span style="color:#aa0000;"><strong><kbd>Control</kbd></strong></span> key and 	press <span style="color:#aa0000;"><strong><kbd>g</kbd></strong></span> while 	<span style="color:green;"><strong>Control</strong></span> is 	still held down. Similarly the abbreviation <span style="color:green;"><strong>M-</strong></span> is used to 	indicate the <span style="color:green;"><strong>Meta</strong></span> key, which 	is often next to or close to the space-bar and may be labelled as 	a diamond. Users of <span style="color:green;"><strong>Jove</strong></span> (and some 	other versions) should use 	the <span style="color:green;"><strong>Escape</strong></span> key 	instead, labelled &#8220;Esc&#8221;, and this should pressed and released, 	before pressing the next key.</p>
<table border="3" align="right" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Movement</strong></td>
<td><strong>Key Combination</strong></td>
</tr>
<tr align="center">
<td>Forward one word</td>
<td>M-f</td>
</tr>
<tr align="center">
<td>Back one word</td>
<td>M-b</td>
</tr>
<tr align="center">
<td>Up one screen</td>
<td>M-v</td>
</tr>
<tr align="center">
<td>Down one screen</td>
<td>C-v</td>
</tr>
<tr align="center">
<td>To start of line</td>
<td>C-a</td>
</tr>
<tr align="center">
<td>To end of line</td>
<td>C-e</td>
</tr>
<tr align="center">
<td>To start of sentence</td>
<td>M-a</td>
</tr>
<tr align="center">
<td>To end of sentence</td>
<td>M-e</td>
</tr>
<tr align="center">
<td>To start of file</td>
<td>M-&lt;</td>
</tr>
<tr align="center">
<td>To end of file</td>
<td>M-&gt;</td>
</tr>
</tbody>
</table>
<h3>Cursor Movement</h3>
<p>There are numerous ways of moving the cursor around a text 	file, aside from the cursor keys which move one character at a 	time. The more common ways are shown in the table. If there are 	no cursor keys on your keyboard the following key combinations 	can be used instead. The letters used stand for <strong>P</strong>revious, 	<strong>N</strong>ext, <strong>F</strong>orward and <strong>B</strong>ack.</p>
<table border="0" align="center">
<tbody>
<tr align="center">
<td></td>
<td><span style="color:#aa0000;"><strong><kbd>C-p</kbd></strong></span></td>
<td></td>
</tr>
<tr align="center">
<td><span style="color:#aa0000;"><strong><kbd>C-b</kbd></strong></span></td>
<td><img src="http://belgarath.org/guide/arrows.gif" alt="+" /></td>
<td><span style="color:#aa0000;"><strong><kbd>C-f</kbd></strong></span></td>
</tr>
<tr align="center">
<td></td>
<td><span style="color:#aa0000;"><strong><kbd>C-n</kbd></strong></span></td>
<td></td>
</tr>
</tbody>
</table>
<table border="3" align="left" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Action</strong></td>
<td><strong>Key Combination</strong></td>
</tr>
<tr align="center">
<td>Delete character<br />
after cursor</td>
<td>C-d</td>
</tr>
<tr align="center">
<td>Delete word<br />
before cursor</td>
<td>M-delete</td>
</tr>
<tr align="center">
<td>Delete word<br />
after cursor</td>
<td>M-d</td>
</tr>
<tr align="center">
<td>Delete to end<br />
of line</td>
<td>C-k</td>
</tr>
<tr align="center">
<td>Delete to end<br />
of sentence</td>
<td>M-k</td>
</tr>
<tr align="center">
<td>Insert previous<br />
kill (Yank)</td>
<td>C-y</td>
</tr>
<tr align="center">
<td>Undo</td>
<td>C-X u</td>
</tr>
</tbody>
</table>
<h3>Deleting and Pasting</h3>
<p>In addition to the standard <span style="color:green;"><strong>Delete</strong></span> or <span style="color:green;"><strong>Backspace</strong></span> key, 	which deletes the character before the cursor, there are 	numerous commands for deleting and moving text, as shown in 	the table.</p>
<p>The <span style="color:green;"><strong>Yank</strong></span> command is very useful when used in conjunction with the <span style="color:green;"><strong>Delete to end of 	      line</strong></span> operation. Multiple lines can be 	deleted, and then pasted back in a different place, using 	the <span style="color:green;"><strong>Yank</strong></span> command. This provides an easy way of moving text around. If 	you are running a graphical version of <span style="color:green;"><strong>emacs</strong></span> you can also 	use the mouse to select and paste text.</p>
<table border="3" align="right" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Action</strong></td>
<td><strong>Key Combination</strong></td>
</tr>
<tr align="center">
<td>Search forward</td>
<td>C-s</td>
</tr>
<tr align="center">
<td>Search backward</td>
<td>C-r</td>
</tr>
<tr align="center">
<td>Cancel operation</td>
<td>C-g</td>
</tr>
<tr align="center">
<td>Save current file</td>
<td>C-x C-s</td>
</tr>
<tr align="center">
<td>Edit a file</td>
<td>C-x C-f</td>
</tr>
<tr align="center">
<td>Quit</td>
<td>C-x C-c</td>
</tr>
</tbody>
</table>
<h3>Searching and Saving</h3>
<p>The current text can be searched by pressing the appropriate 	key combination and then entering the string to search for. In 	some versions of <span style="color:green;"><strong>emacs</strong></span> the search 	is performed interactively; the cursor jumps to the next 	position which currently matches the entered text. You can 	search for the next match by pressing the key combination 	again. The search can be cancelled by pressing <span style="color:#aa0000;"><strong><kbd>C-g</kbd></strong></span>, which can also 	be used to cancel many other operations.</p>
<p>If the <span style="color:green;"><strong>Edit 	      file</strong></span> command is given you will be 	prompted for a the name of a file, which will then be loaded 	into the editor. But any file you were previously editing will 	remain in memory. You can open as many files as you like, 	and each is placed in its own <strong>buffer</strong>, and there are 	various ways of changing buffers, depending on your version of 	<span style="color:green;"><strong>emacs</strong></span>.</p>
<h2>The Vi Editor</h2>
<p align="center">
<table border="3" align="left" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Action</strong></td>
<td><strong>Key</strong></td>
</tr>
<tr align="center">
<td>Insert text in front<br />
of cursor</td>
<td>i</td>
</tr>
<tr align="center">
<td>Insert text after<br />
cursor</td>
<td>a</td>
</tr>
<tr align="center">
<td>Insert text after<br />
current line</td>
<td>o</td>
</tr>
<tr align="center">
<td>Insert text before<br />
current line</td>
<td>O</td>
</tr>
<tr align="center">
<td>Overwrite text</td>
<td>R</td>
</tr>
</tbody>
</table>
<p>The main feature which distinguishes <span style="color:green;"><strong>vi</strong></span> from most 	editors is its separate modes: <span style="color:green;"><strong>text entry mode</strong></span> and <span style="color:green;"><strong>command 	      mode</strong></span>. The editor can be started by 	typing <span style="color:#aa0000;"><strong><kbd>vi</kbd></strong></span>, with 	a optional filename. On startup it enters <span style="color:green;"><strong>command mode</strong></span>. To 	change to text entry mode one of the keys listed in the table is 	pressed, depending of the nature of the entry mode required.</p>
<p>You can now enter text, but you cannot use any of the cursor 	keys to move around or perform any other operations. To do so, 	you must leave the mode and enter <span style="color:green;"><strong>command mode</strong></span>, by 	pressing the <span style="color:#aa0000;"><strong><kbd>Escape</kbd></strong></span> key. You  	can then perform the operations described in the following 	sections.</p>
<table border="3" align="right" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Movement</strong></td>
<td><strong>Key Combination</strong></td>
</tr>
<tr align="center">
<td>To start of line</td>
<td>^</td>
</tr>
<tr align="center">
<td>To end of line</td>
<td>$</td>
</tr>
<tr align="center">
<td>Forward one word</td>
<td>w</td>
</tr>
<tr align="center">
<td>Back one word</td>
<td>b</td>
</tr>
<tr align="center">
<td>Up one screen</td>
<td>C-b</td>
</tr>
<tr align="center">
<td>Up half a screen</td>
<td>C-u</td>
</tr>
<tr align="center">
<td>Down one screen</td>
<td>C-f</td>
</tr>
<tr align="center">
<td>Down half a screen</td>
<td>C-d</td>
</tr>
<tr align="center">
<td>To line <em>n</em></td>
<td>:<em>n</em></td>
</tr>
</tbody>
</table>
<h3>Cursor Movement</h3>
<p>The keys shown in the diagram below can be used to move the 	cursor around. In addition, cursor keys can be used, if they 	are present on your keyboard.</p>
<table border="0" align="center">
<tbody>
<tr align="center">
<td></td>
<td><span style="color:#aa0000;"><strong><kbd>k</kbd></strong></span></td>
<td></td>
</tr>
<tr align="center">
<td><span style="color:#aa0000;"><strong><kbd>h</kbd></strong></span></td>
<td><img src="http://belgarath.org/guide/arrows.gif" alt="+" /></td>
<td><span style="color:#aa0000;"><strong><kbd>l</kbd></strong></span></td>
</tr>
<tr align="center">
<td></td>
<td><span style="color:#aa0000;"><strong><kbd>j</kbd></strong></span></td>
<td></td>
</tr>
</tbody>
</table>
<p>The last command listed, to jump to a given line number, 	shows use of the extended command entry facility. The <span style="color:#aa0000;"><strong><kbd>Enter</kbd></strong></span> key should be 	pressed after the command is entered.</p>
<table border="3" align="left" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Action</strong></td>
<td><strong>Key Combination</strong></td>
</tr>
<tr align="center">
<td>Delete character</td>
<td>x</td>
</tr>
<tr align="center">
<td>Delete word</td>
<td>dw</td>
</tr>
<tr align="center">
<td>Delete entire line</td>
<td>dd</td>
</tr>
<tr align="center">
<td>Delete to end of line</td>
<td>D</td>
</tr>
<tr align="center">
<td>Delete block</td>
<td>:&lt;<em>range</em>&gt;d</td>
</tr>
<tr align="center">
<td>Replace characer</td>
<td>r</td>
</tr>
<tr align="center">
<td>Replace word</td>
<td>cw (then Esc)</td>
</tr>
<tr align="center">
<td>Replace line</td>
<td>cc (then Esc)</td>
</tr>
<tr align="center">
<td>Yank lines into buffer</td>
<td>:&lt;<em>range</em>&gt;y</td>
</tr>
<tr align="center">
<td>Paste buffer after current line</td>
<td>:pu</td>
</tr>
<tr align="center">
<td>Paste buffer after line <em>n</em></td>
<td>:<em>n</em>pu</td>
</tr>
</tbody>
</table>
<h3>Deleting and Pasting</h3>
<p><span style="color:green;"><strong>Vi</strong></span> provides 	numerous commands for manipulating text, many of which are 	shown in the table.</p>
<p>To replace a word or line, press the keys listed, then enter 	the replacement word or line, pressing <span style="color:#aa0000;"><strong><kbd>Escape</kbd></strong></span> to finish.</p>
<p>Two of the commands listed contain a &lt;<em>range</em>&gt; 	parameter which specifies the lines the command is to be 	applied to. This can be a single line number, or a start and 	end line number, separated by a comma. There are two special 	characters that can be used: <span style="color:green;"><strong>$</strong></span> for the last 	line, and <span style="color:green;"><strong>.</strong></span> for the line containing the cursor.</p>
<table border="3" align="right" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Action</strong></td>
<td><strong>Key Combination</strong></td>
</tr>
<tr align="center">
<td>Search forward</td>
<td>/</td>
</tr>
<tr align="center">
<td>Search backward</td>
<td>?</td>
</tr>
<tr align="center">
<td>Repeat last search</td>
<td>n</td>
</tr>
<tr align="center">
<td>Replace first occurrence of<br />
<em>str</em> on each 	    line with 	    <em>rep</em></td>
<td>:&lt;<em>range</em>&gt;s/<em>str</em>/<em>rep</em>/</td>
</tr>
<tr align="center">
<td>Replace every occurrence of<br />
<em>str</em> on each 	    line with 	    <em>rep</em></td>
<td>:&lt;<em>range</em>&gt;s/<em>str</em>/<em>rep</em>/g</td>
</tr>
<tr align="center">
<td>Save current file</td>
<td>:w</td>
</tr>
<tr align="center">
<td>Save as &lt;<em>name</em>&gt;</td>
<td>:w &lt;<em>name</em>&gt;</td>
</tr>
<tr align="center">
<td>Edit &lt;<em>name</em>&gt; instead of 	    current file</td>
<td>:e &lt;<em>name</em>&gt;</td>
</tr>
<tr align="center">
<td>Quit if saved</td>
<td>:q</td>
</tr>
<tr align="center">
<td>Quit without save</td>
<td>:q!</td>
</tr>
</tbody>
</table>
<h3>Searching and Saving</h3>
<p>To search for a string in the current buffer, press the key 	shown in the table, type in the search string, and then 	press <span style="color:#aa0000;"><strong><kbd>Enter</kbd></strong></span>.</p>
<p>The replace commands operate on the entire buffer, unless a 	range parameter is given.</p>
<p>You must save the buffer before quitting, unless you use the 	<span style="color:green;"><strong>quit without 	      save</strong></span> option.</p>
<h2>Printing files</h2>
<p>Most networked systems have at least one printer attached to 	the network, which can be used to obtain a hard copy of your 	work. For most purposes fast dot matrix printers are adequate, 	although laser printers can be used for higher quality 	output.</p>
<p>To send a file to a printer type <span style="color:#aa0000;"><strong><kbd>lpr</kbd></strong></span> followed by the name 	of the file to be printed. This will send the file to the 	default printer, whatever that may be set to. If you wish to use 	a different printer, you need to know the name of the printer, 	as it is known to the system, and then you can use the <span style="color:green;"><strong>-P</strong></span> option to <span style="color:green;"><strong>lpr</strong></span>. For example a 	laser printer may be known as <span style="color:green;"><strong>ps</strong></span> (for 	<strong>P</strong>ost-<strong>S</strong>cript), in which case <span style="color:#aa0000;"><strong><kbd>lpr -Pps text</kbd></strong></span> will send 	the file to it.</p>
<p>Files sent to a printer are held in a queue until the printer 	is free to print them. On a busy system this could take some 	time, especially if the printer runs out of paper or breaks 	down. You can monitor the print queue, and the progress of 	your file in it, using the <span style="color:green;"><strong>lpq</strong></span> command. It 	will list the job number, name, size, and owner of all the 	items on the queue.</p>
<p>Files can be removed from the print queue before they are 	printed by using the <span style="color:green;"><strong>lprm</strong></span> command. Provide this command with the job number or numbers 	you wish to cancel, obtained using <span style="color:green;"><strong>lpq</strong></span>, or use <span style="color:#aa0000;"><strong><kbd>lprm -</kbd></strong></span> to cancel all 	of the items on the queue belonging to you. Make sure you use 	this command if you make a mistake or change your mind; don&#8217;t 	waste resources, and remember you are responsible for files you 	print, which you may have to pay for. Find out first!</p>
<hr /><img src="http://belgarath.org/guide/findingout.gif" alt="" /></p>
<p>Commands covered in this section: <span style="color:green;">date wc who ps du quota</span></p>
<h2>Date &amp; Time</h2>
<p>To find what the date and current time are, simply type <span style="color:#dd0000;"><kbd>date</kbd></span>. This will give you the date and time in a format similar to this <span style="color:green;"><kbd>Thu Aug 13 13:50:33 EDT 1996</kbd></span>. If the system is set to display GMT then this is what you will get, otherwise you can force date to display GMT by using <span style="color:#dd0000;"><kbd>date -u</kbd></span>, which will produce your output in GMT.</p>
<hr />
<h2>File Lengths</h2>
<p>The <span style="color:green;"><kbd>wc</kbd></span> command will enable you to find out how many words, lines or characters are in a text file. This is a useful command if you have some work which is restricted in length, or simply find out how long you latest master piece is!<br />
<span style="color:#dd0000;"><kbd>wc <em>filename</em></kbd></span> will give you the number of characters, words, and lines in the file. If you don&#8217;t want all these details you can restrict the output by using: <span style="color:#dd0000;"><kbd>wc -c <em>filename</em></kbd></span> to get the number of characters in the file only, <span style="color:#dd0000;"><kbd> wc -w </kbd> <em>filename</em></span>to get only the number of words in the file, <span style="color:#dd0000;"><kbd>wc -l <em>filename</em></kbd></span> to get the number of lines, or you can use any combination of these.</p>
<hr />
<h2>Space Used</h2>
<p>One thing you are bound to notice at some point, is that you do not (most often) have unlimited space on your account. Each file/directory you create will take up some of your <strong>file and disk quota</strong>. Monitoring how much disk space you are using is an essential part of your UNIX life. There are two commands you can use to do this, namely <span style="color:green;"><kbd>du</kbd></span> and <span style="color:green;"><kbd>quota</kbd></span></p>
<p>.</p>
<h3>du</h3>
<p>du will report how many disk blocks your files and directories are using. Use du to find out the space taken up by the files in your current directory as well as any sub-directores immediately beneath the current.<br />
If you use <span style="color:#dd0000;"><kbd>du <em>name1, name2, ...</em></kbd></span> you will get the amount of space taken up by the files/directories you specified. The output of <span style="color:#dd0000;"><kbd>du</kbd></span> can be formatted, to make reading it easier. Use <span style="color:green;"><kbd>du -a</kbd></span> to force <span style="color:green;"><kbd>du</kbd></span> to display details of each file on a separate line, or use <span style="color:#dd0000;"><kbd>du -s</kbd></span> to give you details of how much space the entire directory is using, not displaying each the details for each file.</p>
<p>Another way to find out how much space you have left is to use <span style="color:green;"><kbd>quota</kbd></span>. This command will tell you how much of your <strong>quota</strong> you are using and what your limit is.</p>
<h3>quota</h3>
<p><span style="color:#dd0000;"><kbd>quota</kbd></span> on its own will tell you how much space has been allocated to your account and how much you are using. <span style="color:#dd0000;"><kbd>quota -v</kbd></span> will display quota on file systems where there is no storage.  <span style="color:#dd0000;"><kbd>quota -g</kbd></span> will tell you how much quota you are using as well as the group to which you belong, if you want more details use <span style="color:#dd0000;"><kbd>quota -q</kbd></span>.<br />
To get another user&#8217;s quota information use <span style="color:#dd0000;"><kbd>quota <em>username</em></kbd></span>. Or you can use <span style="color:#dd0000;"><kbd>quota <em>groupname</em></kbd></span> to get the quotas for a  given group.</p>
<hr /><img src="http://belgarath.org/guide/easier.gif" alt="Making it Easier" /></p>
<h2>The UNIX Shells</h2>
<p>A fundamental concept in the UNIX world is that of 	<strong>shells</strong>. A shell is a program that forms an interface 	between you and the raw operating system. Whenever you enter 	commands into a UNIX system, you talk to a shell, which takes 	your input, processes it in various ways, makes the required 	operating system calls and displays any results. Having this 	separation allows many useful features to be introduced without 	changing the underlying operating system. All shells provide 	certain functionality, much of which will be described in this 	section, but some shells offer advanced compabilities which will 	discussed in a later section dedicated to that shell.</p>
<p>The main shells are:</p>
<ul>
<li><span style="color:green;"><strong>sh</strong></span> &#8211; the 	  original Bourne Shell</li>
<li><span style="color:green;"><strong>csh</strong></span> &#8211; the 	  C shell</li>
<li><span style="color:green;"><strong>tcsh</strong></span> &#8211; 	  extended C shell</li>
<li><span style="color:green;"><strong>bash</strong></span> &#8211; the 	  GNU <strong>B</strong>ourne <strong>A</strong>gain <strong>SH</strong>ell (one of the most 	  popular)</li>
<li><span style="color:green;"><strong>ksh</strong></span> &#8211; the 	  Korn shell</li>
<li><span style="color:green;"><strong>zsh</strong></span> &#8211; the 	  Z shell (the most advanced)</li>
</ul>
<p>The first two shells listed above are fairly basic, and 	some versions do not provide some of the facilities dicussed 	here, such as tab-completion. Therefore it is recommended you 	use one of the other four, if possible. You can find out which 	shell you are using by typing <span style="color:#aa0000;"><strong><kbd>echo 	      $SHELL</kbd></strong></span>. You can use a different shell by typing 	its name, or you can change shells completely using the <span style="color:green;"><strong>chsh</strong></span> command, if this 	available on your system (run the command and you&#8217;ll be prompted 	for the full pathname of the shell you wish to use &#8211; use <span style="color:green;"><strong>which</strong></span> followed by the 	name of the shell to tell you this).</p>
<h2>Tab-Completion</h2>
<p>Filenames can be long &#8211; up to 256 characters. They are also 	<strong>case sensitive</strong>, so for example, <span style="color:green;"><strong>file</strong></span>, <span style="color:green;"><strong>FiLe</strong></span>, and <span style="color:green;"><strong>FILE</strong></span> are all 	different files. You can used mixed case and other characters 	like &#8220;<span style="color:green;"><strong>_</strong></span>&#8221; and 	&#8220;<span style="color:green;"><strong>.</strong></span>&#8221; to 	give your files meaningful names. Don&#8217;t be put off from using 	long filenames because you don&#8217;t want to have to keep typing 	them in &#8211; there is no excuse with tab-completion!</p>
<p>To experiment with this feature, create some files by typing 	<span style="color:#aa0000;"><strong><kbd>touch psychohistorians foundationsEdge 	      foundationAndEmpire</kbd></strong></span>. Don&#8217;t worry, you&#8217;ll only 	have to type that lot in once.</p>
<p>Now let&#8217;s say you want to rename the first file to <span style="color:green;"><strong>seldon</strong></span>. To 	do this you would use the command <span style="color:green;"><strong>mv psychohistorians 	      seldon</strong></span>. But wait! Type <span style="color:#aa0000;"><strong><kbd>mv psy</kbd></strong></span> (without pressing 	<span style="color:green;"><strong>Return</strong></span>) and then 	press the <span style="color:green;"><strong>TAB</strong></span> key. Providing your shell supports it, the rest of the 	filename will be completed for you, as if by magic! What is 	happening here is your shell is looking for all files that 	match the prefix you have entered. Assuming there is only one 	matching file, it will fill in the rest of the name for 	you. You can then enter the rest of the command.</p>
<p>Next you want to delete the second file. Type <span style="color:#aa0000;"><strong><kbd>rm fou</kbd></strong></span> and press <span style="color:#aa0000;"><strong><kbd>TAB</kbd></strong></span>. The shell will 	fill in as such of the name as it can &#8211; <span style="color:green;"><strong>foundation</strong></span> in this 	case (assuming there are no other similar files in the directory.) It 	will then beep to let you know there is more than one 	completion. Now type <span style="color:#aa0000;"><strong><kbd>s</kbd></strong></span> and press <span style="color:#aa0000;"><strong><kbd>TAB</kbd></strong></span> again. This prefix 	should now be unique, so the full filename will be filled 	in. When there is more than one completion, some shells can 	display the available choices (for example, press <span style="color:#aa0000;"><strong><kbd>TAB</kbd></strong></span> again with the 	<span style="color:green;"><strong>bash</strong></span> shell).</p>
<p>This time, typing <span style="color:#aa0000;"><strong><kbd>mv fou</kbd></strong></span> and pressing <span style="color:#aa0000;"><strong><kbd>TAB</kbd></strong></span> should cause the full filename of the third file to be filled 	in, as the other has been removed.</p>
<h2>Filename Substitution</h2>
<p>This facility, also known as <strong>globbing</strong>, allows you to 	select files using <strong>wildcards</strong>. This form of pattern 	matching can be used to refer to a collection of files in one 	go, again saving considerable time and effort.</p>
<p>To experiment with this feature, repeat the <span style="color:green;"><strong>touch</strong></span> command from 	above, either by entering it again, or by pressing the <span style="color:green;"><strong>cursor up</strong></span> key 	repeatedly to select it from your <strong>command history</strong>, 	if your shell supports this. Also do <span style="color:#aa0000;"><strong><kbd>touch found.c mule.p</kbd></strong></span>.</p>
<p>Patterns are specified using wildcard <strong>metacharacters</strong>, 	which are simply characters which are treated specially by the 	shell. If you wish to use one of these characters as itself, and 	not its special meaning, precede it by a backslash (<span style="color:green;"><strong>\</strong></span>) character; for 	example, <span style="color:#aa0000;"><strong><kbd><span style="color:#aa0000;"><strong><kbd>touch 		    the\*star</kbd></strong></span></kbd></strong></span> would 	create a file called <span style="color:green;"><strong>the*star</strong></span>. The meaning 	of the wildcards is given in the table and their use is 	demonstrated by the following examples.</p>
<table border="3" align="right" bgcolor="#ccffff">
<tbody>
<tr align="center" bgcolor="#ffdddd">
<td><strong>Wildcard</strong></td>
<td><strong>Meaning</strong></td>
</tr>
<tr align="center">
<td>*</td>
<td>Matches any string</td>
</tr>
<tr align="center">
<td>?</td>
<td>Matches any single character</td>
</tr>
<tr align="center">
<td>[ ]</td>
<td>Matches any of the characters<br />
between the brackets. A dash<br />
is used to indicate a range<br />
of characters</td>
</tr>
</tbody>
</table>
<p>List all files beginning with <span style="color:green;"><strong>fou</strong></span>:<br />
<span style="color:#aa0000;"><strong><kbd>ls fou*</kbd></strong></span></p>
<p>List all files ending with <span style="color:green;"><strong>.c</strong></span>:<br />
<span style="color:#aa0000;"><strong><kbd>ls *.c</kbd></strong></span></p>
<p>List all files ending with a dot and a single character:<br />
<span style="color:#aa0000;"><strong><kbd>ls *.?</kbd></strong></span></p>
<p>List all files beginning with <span style="color:green;"><strong>f</strong></span> or <span style="color:green;"><strong>m</strong></span>:<br />
<span style="color:#aa0000;"><strong><kbd>ls [fm]*</kbd></strong></span></p>
<p>List all files beginning with a letter in the range <span style="color:green;"><strong>a..m</strong></span>:<br />
<span style="color:#aa0000;"><strong><kbd>ls [a-m]*</kbd></strong></span></p>
<p>The shell expands the pattern into a sorted list of filenames 	and passes this to the command involved, exactly as if you had 	entered each of the names separately. Now use filename 	substitution and/or tab-completion to remove all the files 	created here.</p>
<h2>Pipes and Redirection</h2>
<p><strong>Pipes</strong> allow you to send the output of one command to the 	input of another, using the pipe metacharacter &#8220;<span style="color:green;"><strong>|</strong></span>&#8220;. For example 	<span style="color:#aa0000;"><strong><kbd>ls | wc -l</kbd></strong></span> will 	count the files in the current directory, and <span style="color:#aa0000;"><strong><kbd>ls -l | more</kbd></strong></span> will 	give a detailed file list, pausing between each page if 	the list is too long to fit on the screen at once.</p>
<p>You can join any number of commands together in this way, to 	form a <strong>pipeline</strong>. These are fundamental to UNIX, and can 	solve complex problems using only the basic building blocks of 	UNIX commands. For example <span style="color:#aa0000;"><strong><kbd>ls -l 	      | cut -c33-42 | sort -nr | head -1</kbd></strong></span> finds the size of the largest file in the current 	directory. It works by listing the files, extracting the size 	column, sorting this in descending numerical order, and taking 	only the first line.</p>
<p><strong>Redirection</strong> allows commands to get their input from a 	file instead of the keyboard, and send their output to a file 	instead of the screen. The two metacharacters &#8220;<span style="color:green;"><strong>&lt;</strong></span>&#8221; and &#8220;<span style="color:green;"><strong>&gt;</strong></span>&#8221; are used to do 	this. For example, <span style="color:#aa0000;"><strong><kbd>ls &gt; 	      contents</kbd></strong></span> will store the directory listing in a 	file called <span style="color:green;"><strong>contents</strong></span> and will not 	display anything to the screen. Verify this by running the 	command and then using <span style="color:green;"><strong>cat</strong></span> or <span style="color:green;"><strong>more</strong></span>. Note that the 	<span style="color:green;"><strong>contents</strong></span> file is 	created in the process, but if it already exists it will be 	overwritten, so be careful. Input redirection is similar; <span style="color:#aa0000;"><strong><kbd>wc -l &lt; contents</kbd></strong></span> will 	cause the <span style="color:green;"><strong>wc</strong></span> command to read from the file.</p>
<p>There are two additional forms of redirection: <span style="color:#aa0000;"><strong><kbd>ls &gt;&gt; contents</kbd></strong></span> will 	send the output to the named file, but it will <strong>append</strong> this 	output to the current contents of the file, if any. The input 	version of this operation creates what are known as <strong>here 	  documents</strong>. Enter <span style="color:#aa0000;"><strong><kbd>cat 	      &lt;&lt;END</kbd></strong></span>. Your prompt will probably 	change, to indicate that the command is waiting for some 	input. Type a few lines of text, and then type <span style="color:#aa0000;"><strong><kbd>END</kbd></strong></span> exactly, on a 	line of its own. The command should then complete by 	repeating what you entered. The <span style="color:green;"><strong>&lt;&lt;HERE</strong></span> part of the 	command tells your shell to accept what is typed as input to 	the command, until the word <span style="color:green;"><strong>END</strong></span> is read on a 	line of its own &#8211; any word can be used instead. The command 	then behaves as if what you entered was stored in a file and 	redirected into the command. This facility has numerous uses, 	such as quickly creating a small file; <span style="color:#aa0000;"><strong><kbd>cat &lt;&lt;HERE &gt;textfile</kbd></strong></span> will cause what you type to be stored in the named file.</p>
<h2>Input, Output, and Error Streams</h2>
<p>The pipe and redirection characters discussed above 	manipulate <strong>streams</strong> of characters. There are three 	standard streams: <strong>input,</strong> <strong>output,</strong> and 	<strong>error.</strong> Normal communication to and from commands takes 	place via the input and output streams, but there is a third 	channel for reserved for errors. For example, <span style="color:#aa0000;"><strong><kbd>wc -l contents &gt; out</kbd></strong></span> will count the lines in the file, assuming it exists, and 	store the results in a file called <span style="color:green;"><strong>out</strong></span>. However, if 	you remove the <span style="color:green;"><strong>contents</strong></span> file and 	try again, you will get an error message: <span style="color:green;"><strong>wc: contents: No such file or 	      directory</strong></span>, and the <span style="color:green;"><strong>out</strong></span> file will be 	empty. The error message is not send to the file as it is 	using a separate stream, namely the error stream.</p>
<p>It is, however, possible to redirect the error stream in a 	similar way to the standard output stream. Typing <span style="color:#aa0000;"><strong><kbd>wc -l contents 2&gt; 	      out</kbd></strong></span> will send any errors to the file, 	with any standard output going to the screen. Multiple 	redirection is possible as in <span style="color:#aa0000;"><strong><kbd>wc 	      -l contents &gt;out 2&gt;errors</kbd></strong></span>, which sends 	the two output streams to different files. Note that spaces 	after the redirection characters are optional.</p>
<hr /><img src="http://belgarath.org/guide/process.gif" alt="Process Title" /></p>
<p>Commands covered in this section: <span style="color:green;">ps wait sleep fg bg nohup kill</span></p>
<h2>Foreword</h2>
<p>When using UNIX, process management becomes very important, because a given program can start more than one process and you can have suspended processes, processes running in the background, &#8230;<br />
In this section we will show you how to see what processes you are running, how to run a process in the background and how to bring them to the foreground.</p>
<hr />
<h2>Viewing Running processes</h2>
<p>Use <span style="color:#dd0000;"><kbd>ps</kbd></span> to view what processes are running, this will give you the following output:</p>
<p><span style="color:#dd0000;"><kbd> </kbd></span></p>
<table border="0">
<tbody>
<tr>
<th> <span style="color:green;">PID</span></th>
<th> <span style="color:green;">TTY</span></th>
<th> <span style="color:green;">TIME</span></th>
<th> <span style="color:green;">COMMAND</span></th>
</tr>
<tr>
<td><span style="color:green;">067</span></td>
<td><span style="color:green;">console</span></td>
<td><span style="color:green;">00:05</span></td>
<td><span style="color:green;">sh </span></td>
</tr>
<tr>
<td><span style="color:green;">063</span></td>
<td><span style="color:green;">tty02</span></td>
<td><span style="color:green;">10:20</span></td>
<td><span style="color:green;">/bin/local/usr/zsh</span></td>
</tr>
<tr>
<td><span style="color:green;">062</span></td>
<td><span style="color:green;">tty02 </span></td>
<td><span style="color:green;">10:22</span></td>
<td><span style="color:green;"> ps</span></td>
</tr>
<tr>
<td><span style="color:green;">060</span></td>
<td><span style="color:green;">tty00 </span></td>
<td><span style="color:green;">12:05</span></td>
<td><span style="color:green;">/net/pppd</span></td>
</tr>
</tbody>
</table>
<p>This tells you what the Process Id of the given process is, where it is being run, at what time it started, and what command is being executed.<br />
To get more details use <span style="color:#dd0000;"><kbd>ps -f</kbd></span>, this will give you the userid which started the process, the parent process which spun the child process, and a few more &#8230; There is also the <span style="color:#dd0000;"><kbd>ps -l</kbd></span> option which is an extended version of the output <span style="color:green;"><kbd>ps</kbd></span> provides, all the extra information given with the -l option is really of use just for system admins, you can have a go at it but it won&#8217;t be of much use.</p>
<p>Further useful options <span style="color:green;"><kbd>ps</kbd></span> offers are also available threw the command line options of <span style="color:green;"><kbd>ps</kbd></span>. Use  <span style="color:#dd0000;"><kbd>ps -e</kbd></span> to get details about every process running, <span style="color:#dd0000;"><kbd>ps - u <em>userlist</em></kbd></span> gives details about all the processes run by the given user. Use <span style="color:#dd0000;"><kbd>ps -t <em>ttynn</em></kbd></span> gives details about all processes run on the given device, you can replace <em>ttynn</em> by any valid device listed in the /dev directory.</p>
<hr />
<h2>Process Execution</h2>
<p>To suspend the execution of a process to a later time use <span style="color:#dd0000;"><kbd>sleep <em>time</em></kbd></span> replacing <em>time</em> with the time in seconds to wait before executing the process.</p>
<p>To run a process after another process use <span style="color:#dd0000;"><kbd>wait <em>PID</em></kbd></span> where <em>PID</em> is the process Id to wait for. After that process is executed the specified process will run. If you do not give a PID your process will wait for all other background processes to finish executing first.</p>
<hr />
<h2>Background &amp; Foreground Processes</h2>
<p>To run a process in the background use <span style="color:#dd0000;"><kbd>bg <em>commands</em></kbd></span>, where <em>commands</em> is what you want your shell to execute. Only non- interactive processes can run in the background and interactive process will be just suspended.<br />
To bring a process to the foreground use <span style="color:#dd0000;"><kbd>fg <em>process</em></kbd></span>, the process will then run in the foreground. You can use <span style="color:#dd0000;"><kbd>fg</kbd></span> to bring to the foreground any suspended process or any process running in the background.</p>
<hr />
<h2>Background Processes (Advanced Use)</h2>
<p>At certain time the need to leave a process running when you log off. To do this the <span style="color:green;"><kbd>nohup</kbd></span> command is availabe. This will in effect start the process and let you log off ignorinag any hangup signals. Use <span style="color:#dd0000;"><kbd>nohup <em>command args...</em> &amp;</kbd></span>, this will start the command you specify and pass arguments to it (if any) leaving the command to execute when you log off. The &amp; sign is required because the <span style="color:green;"><kbd>nohup</kbd></span> command will not cause the process to run in the backgound automatically, so the &amp; is used to start running the process.</p>
<hr />
<h2>Killing Processes</h2>
<p>It might, at some point, become necessary to kill/terminate a process. This is most commonly used to terminate a process which is no longer responding, or to kill all processes before logging out. Leaving running processes  which are practically useless will slow down your system, so make sure no processes are left running. This is just a case of  cleaning up after use type of situation.<br />
Use <span style="color:#dd0000;"><kbd>kill -s <em>SIGNAL PID</em></kbd></span> to send a signal to the given PID. If you do not know which signal to use type <span style="color:#dd0000;"><kbd>kill -l</kbd></span> to get a list of all available signals.<br />
To kill a process you would use the KILL signal as such: <span style="color:#dd0000;"><kbd>kill -s KILL <em>PID</em></kbd></span>, this would in effect terminate the process indicated by its PID.<br />
To find out what signal terminated the previous shell command use <span style="color:#dd0000;"><kbd>kill -l $?</kbd></span>.<br />
Note that indiscriminate use of <span style="color:green;"><kbd>kill</kbd></span> can get you into trouble, and that you will only be allowed to kil you own processes.</p>
<hr /><img src="http://belgarath.org/guide/internet.gif" alt="Internet Title" /></p>
<p>Commands covered in this section: <span style="color:green;">ftp trn mail elm pine lynx netscape</span></p>
<h2>Transferring Files</h2>
<p>In this section we will introduce many of the most common networking utilities provided by UNIX. The first and most commonly used is <span style="color:green;"><kbd>ftp</kbd></span></p>
<p>.</p>
<p><span style="color:green;"><kbd>ftp</kbd></span> is a command interpreter which has as primary function to transfer files from one computer to another. The most useful function of <span style="color:green;"><kbd>ftp</kbd></span> is what is know as anonymous ftp, which allow files to be exchanged between a number of users and the rest of the world, over a public connection. Most FTP servers will provide a directory named /pub under which are located all the publicly available files for that site.<br />
The fundamental steps for retrieving a file using an <span style="color:green;"><kbd>ftp</kbd></span> connection are as follows:</p>
<ol type="i">
<li>Open a connection to the server</li>
<li>Log in</li>
<li>Find the file</li>
<li>Retrieve the file</li>
<li>Log out</li>
<li>Exit ftp</li>
</ol>
<p>Here is a summary of the <span style="color:green;"><kbd>ftp</kbd></span> commands, because  <span style="color:green;"><kbd>ftp</kbd></span> acts on both the local and the remote computers there are two sets of commands. We will here discuss each type of command separately.</p>
<h3>Connecting &amp; Controlling Transfers</h3>
<ul type="disc">
<li><span style="color:#dd0000;"><kbd>open</kbd></span> &#8211; used to open a connection, type <span style="color:#dd0000;"><kbd>open <em>hostname port</em></kbd></span>. The <em>port</em> is optional, if you are given a port use it, otherwise don&#8217;t.</li>
<li><span style="color:#dd0000;"><kbd>user</kbd></span> &#8211; Used to log into the remote computer, type  <span style="color:#dd0000;"><kbd>user <em> userid password</em></kbd></span>. If you omit <em>password</em> the remote computer will ask you for one. (see notes bellow for public access).</li>
<li><span style="color:#dd0000;"><kbd>!</kbd></span> &#8211; suspends ftp session and starts a subshell, the shell started depends on the SHELL environment variable or if SHELL is not defined will default either to sh or to your login shell (depending how your system is set up.)</li>
<li><span style="color:#dd0000;"><kbd>?</kbd></span> or <span style="color:#dd0000;"><kbd>help</kbd></span> &#8211; Used</li>
<li><span style="color:#dd0000;"><kbd>? <em>command</em></kbd></span> or <span style="color:#dd0000;"><kbd>help <em>command</em></kbd></span> to get help on a specific command or don&#8217;t specify a command to get a list of available commands/options.</li>
<li><span style="color:#dd0000;"><kbd>status</kbd></span> &#8211; Displays status of <span style="color:green;"><kbd>ftp</kbd></span> and show the sessions opened, transfer mode as well as the settings of various toggles.</li>
<li><span style="color:#dd0000;"><kbd>close</kbd></span> or  <span style="color:#dd0000;"><kbd>disconnect</kbd></span> &#8211; Disconnects you from the current remote computer, but remains in <span style="color:green;"><kbd>ftp</kbd></span>.</li>
<li><span style="color:#dd0000;"><kbd>bye</kbd></span> or <span style="color:#dd0000;"><kbd>quit</kbd></span> &#8211; Disconnect from remote computer and exits from ftp completely.</li>
</ul>
<h3>Setting various <span style="color:green;"><kbd>ftp</kbd></span> Toggles/Options</h3>
<p>The following commands are used to set various ftp toggles, this will effect how ftp transfers files as will as how the connection is effected.</p>
<ul type="disc">To change the state of a toggle use <span style="color:#dd0000;"><kbd>toggle on</kbd></span> (or off).</p>
<li><span style="color:#dd0000;"><kbd>ascii</kbd></span> &#8211; Set to on by default, will cause all transfers to be made in ASCII mode.</li>
<li><span style="color:#dd0000;"><kbd>binary</kbd></span> &#8211; Set binary to on, when transferring any non ASCII/text file. If you do not set binary to on and transfer a non-ASCII file it will be corrupt and useless, you have been warned!</li>
<li><span style="color:#dd0000;"><kbd>glob</kbd></span> &#8211; Set this toggle to on if you are planning to use wildcards as *.*, if this is set to off ftp will attempt to retrieve/send a file called *.* and not all files in the current directory.</li>
<li><span style="color:#dd0000;"><kbd>case</kbd></span> &#8211; Set to off by default. If you set it to on all filenames which are in upper case will be in lower case when transferred.</li>
</ul>
<h3>Remote Directories</h3>
<p>The following commands are available to deal with the directories on the remote computer.</p>
<ul type="disc">
<li><span style="color:#dd0000;"><kbd>pwd</kbd></span> &#8211; Displays current remote directory</li>
<li><span style="color:#dd0000;"><kbd>cd <em>dirname</em></kbd></span> &#8211; Changes remote directory to directory specified</li>
<li><span style="color:#dd0000;"><kbd>cdup</kbd></span> &#8211; Chages directory to parent of the current directory, equivalent to <span style="color:#dd0000;"><kbd>cd ..</kbd></span></li>
<li><span style="color:#dd0000;"><kbd>dir <em>remdir</em></kbd></span> &#8211; List files in either current remote directory or if you specify a directory, in the directory specified. The listing will be in an equivalent format to <span style="color:#dd0000;"><kbd>ls -l</kbd></span></li>
<li><span style="color:#dd0000;"><kbd>ls <em>remdir</em></kbd></span> &#8211; Same as <span style="color:#00eeb0;"><kbd>dir</kbd></span> but the listing is in an equivalent format to <span style="color:green;"><kbd>ls -a</kbd></span>, it will show only the files, without attributes, but will include all files which commence with a .</li>
<li><span style="color:#dd0000;"><kbd>mkdir <em>dirname</em></kbd></span> &#8211; Will create a new directory on the remote computer.</li>
<li><span style="color:#dd0000;"><kbd>rmdir <em>dirname</em></kbd></span> &#8211; Removes directory specified on the remote computer.</li>
</ul>
<h3>Local Directories</h3>
<p><span style="color:#dd0000;"><kbd>lcd <em>dirname</em></kbd></span> &#8211; Will change the local working directory, you can use the usual <span style="color:green;"><kbd>cd</kbd></span> options (such as <span style="color:green;"><kbd>cd ..</kbd></span> would be <span style="color:green;"><kbd>lcd ..</kbd></span>)</p>
<h3>Remote Files</h3>
<p>Use these commands to manipulate remote files.</p>
<ul type="disc">
<li><span style="color:#dd0000;"><kbd>get <em>filename</em></kbd></span> &#8211; Retrieves file specified and stores it under the same name in your current local directory. If you want to store the file under a different name use <span style="color:#dd0000;"><kbd>get <em>filename newfilename</em></kbd></span>, where <em>newfilename</em> is the name you want to store the file under.</li>
<li><span style="color:#dd0000;"><kbd>mget <em>file1 file2 file3 ...</em></kbd></span> &#8211; Retrieves multiple remote files, you can specify as many files as you want. Wildcards can be used if the glob toggle has been set to on.</li>
<li><span style="color:#dd0000;"><kbd>send <em>file</em></kbd></span> or <span style="color:#dd0000;"><kbd>put <em>file</em></kbd></span> &#8211; Will send the file specified to the remote computer where it will be stored in the current remote directory. If you want to store the file under a different name use:</li>
<li><span style="color:#dd0000;"><kbd>store <em>file newfilename</em></kbd></span>.</li>
<li><span style="color:#dd0000;"><kbd>mput <em>file1 file2 file3...</em></kbd></span> &#8211; same as put but store multiple files on the remote computer, the same rules apply here as to the mget command.</li>
<li><span style="color:#dd0000;"><kbd>delete <em>filename</em></kbd></span> &#8211; Will delete file on remote computer</li>
<li><span style="color:#dd0000;"><kbd>mdelete <em>file1 file2 file3...</em></kbd></span> &#8211; Deletes multiple remote files</li>
<li><span style="color:#dd0000;"><kbd>rename <em>filename newfilename</em></kbd></span> &#8211; Renames file on remote computer to <em>newfilename</em>.</li>
<li><span style="color:#dd0000;"><kbd>chmod <em>mode filename</em></kbd></span> &#8211; Changes access mode for specified file. Note that the mode needs to specified as a octal value, <span style="color:green;"><kbd>ftp</kbd></span> will not accept the ASCII settings (as u-r a-x &#8230;).</li>
</ul>
<hr />
<h2>Reading NewsGroups</h2>
<p>Just as <span style="color:green;"><kbd>ftp</kbd></span>, internet newsgroups is a great way of communicating with other users, as well as distributing programs.<br />
Because of the complexity and number of uses/options of <span style="color:green;"><kbd>trn</kbd></span> we will here only cover the basics, leaving you to explore the rest. The major difference between <span style="color:green;"><kbd>trn</kbd></span> and other command line news readers is the fact that <span style="color:green;"><kbd>trn</kbd></span> supports news threads. What this means is that when a new article is posted to a given newsgroup, it starts a new thread and each subsequent reply is a child to the main one. This acts in much the same way as the UNIX directory tree, where the first message is the parent directory and each reply to that message is a subdirectory to it.</p>
<p><img src="http://belgarath.org/guide/graph1.gif" alt="NewsGroup Thread Map" align="right" /></p>
<p>Upon starting <span style="color:green;"><kbd>trn</kbd></span>, your .newsrc file will be read (if it doesn&#8217;t exist it will be created), and the newsgroups you have subscribed to will be displayed as:</p>
<p><span style="color:green;"><kbd> ====== 17 unread articles in warwick.help -- read now? [ynq]<br />
====== 07 unread articles in alt.binaries -- read now? [ynq]<br />
</kbd></span><br />
At this point you can either type <span style="color:#dd0000;"><kbd>y</kbd></span> to read this newsgroup (in which case messages are displayed sequentially.), <span style="color:#dd0000;"><kbd>n</kbd></span> to skip the group and move onto the next with unread messages or <span style="color:#dd0000;"><kbd>q</kbd></span> to exit <span style="color:green;"><kbd>trn</kbd></span> completely.<br />
Other options available are: by typing <span style="color:#dd0000;"><kbd>+</kbd></span> to enter newsgroup threw the selector, <span style="color:#dd0000;"><kbd>=</kbd></span> to list headers before displaying articles.<br />
To find a given newsgroup use <span style="color:#dd0000;"><kbd>/<em>pattern</em></kbd></span> where the <em>pattern</em> is the newsgroup string you seek (this will search forward threw the newsgroup listing, and find the group matching your string). To search backwards use <span style="color:#dd0000;"><kbd>?<em>pattern</em></kbd></span>. Typing <span style="color:#dd0000;"><kbd>l <em>string</em></kbd></span> will search for a newsgroup containing the string you specified, threw the groups you haven&#8217;t subscribed to (ie: including those that are not listed in your .newsrc file).<br />
Use the <span style="color:#dd0000;"><kbd>u</kbd></span> command to unsuscribe from a newsgroup, and <span style="color:#dd0000;"><kbd>c</kbd></span> to mark a thread as read.</p>
<h3>Using the Thread Selector</h3>
<p>If you entered a group using the <span style="color:green;"><kbd>+</kbd></span> command and the <span style="color:#dd0000;"><kbd>-X</kbd></span> option at the command line, you will be able to read the groups in a selective way, this is particularly useful if you only want to read a small number of messages.<br />
To start reading a given thread, select an item to read use the letter  or number specified, and hit CR. If you do not select a thread first the first unread one will be selected. To mark an item as killed, use either k or a comma.</p>
<p>To navigate the threads the following keys are available:</p>
<p><img src="http://belgarath.org/guide/keys2.gif" alt="Key Map" align="left" /></p>
<p>Both the <span style="color:#dd0000;"><kbd>/<em>pattern</em></kbd></span> and other search features used to search for a given newsgroup are available here to find threads/articles.<br />
You can get help on any command, at any stage by simply typing h, and you can escape to a subshell using The <span style="color:#dd0000;"><kbd>! <em>command</em></kbd></span>.<br />
Typing a <span style="color:#dd0000;"><kbd>q</kbd></span> will get you out of the current level, and bring you to the previous, so if you were reading an article and typed <span style="color:#dd0000;"><kbd>q</kbd></span> you would return to the thread selector, and a <span style="color:#dd0000;"><kbd>q</kbd></span> there would take you back to the newsgroup selector.</p>
<hr />
<h2>Electronic Mail</h2>
<p>Email is most probably the best known service the internet offers to its users, practically everyone has an email address (referred to some as e-address,for electronic address). This is in the following format:</p>
<ul><strong>userid@machine.hostname</strong><br />
Here are the different types of hostnames:<br />
hostname<strong>.ac.uk</strong> &#8211;  Defines an academic institution email<br />
hostname<strong>.co.uk</strong> &#8211;  A company based in the UK<br />
hostname<strong>.com</strong> &#8211; A US based company<br />
hostname<strong>.org</strong> &#8211; A non-profit making organisation<br />
hostname<strong>.gov</strong> &#8211; A government organisation<br />
hostname<strong>.net</strong> &#8211; A network host (most major ISPs have .net extension)</ul>
<p>Let us take an example <strong>frankie.b2@ukonline.co.uk</strong>, is my email at ukonline. My userid is <strong>frankie.b2</strong> and my host is <strong>ukonline</strong>, the final extension <strong>.co.uk</strong> specifies ukonline to be a company in the UK.<br />
Another example is Matt&#8217;s address <strong>csuoq@csv.warwick.ac.uk</strong>, his userid is <strong>csuoq</strong>, the main mail server is <strong>csv</strong>, and the host is <strong>warwick</strong>. The <strong>.ac.uk</strong> extension specifies warwick to be an academic institution.</p>
<hr />
<h2>UNIX Mail Readers</h2>
<h3>Mail</h3>
<p><span style="color:green;"><kbd>mail</kbd></span> is a UNIX utility available for sending and reading of email. Use <span style="color:#dd0000;"><kbd>mail -t <em>recipient</em></kbd></span>, to start mail sending a message to the person specified as recipient. The message to be sent will be read from standard input, until you type a <span style="color:#dd0000;"><kbd>.</kbd></span> followed by a CR. on a line of its own. Or if reading from a file it will terminate when and EOF is read.<br />
When the message is sent the following header information is generated:<br />
<span style="color:green;"><kbd> From<br />
sender<br />
date_and_time<br />
</kbd></span> The form header will specify your email address, the sender will specify the address of your machine (usually just the hostname), then the date and time the message is sent. Some mailers include more information in the headers, such as the name of the mailer, a reply to address&#8230;<br />
Note you can use any of the redirection features of UNIX with, mail. So for example, use <span style="color:#dd0000;"><kbd>mail -t john@home.com &lt; file1 to send file1</kbd></span> to john<br />
Reading mail is just as simple, use <span style="color:#dd0000;"><kbd>mail -h</kbd></span> to display a window of headers  instead of the latest message, or you can use <span style="color:#dd0000;"><kbd>mail -r</kbd></span> to display messages in a first in first out order. To view mail using another file rather than the default use <span style="color:#dd0000;"><kbd>mail -f <em>filename</em></kbd></span>.<br />
If you use <span style="color:green;"><kbd>mail</kbd></span> without any options you will get a list of messages, in a last in first out order.<br />
When reading messages use, these commands</p>
<table border="0">
<tbody>
<tr>
<td><span style="color:#dd0000;"><kbd>-</kbd></span></td>
<td>Print previous message</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>+ or <span style="color:#dd0000;"><kbd>n</kbd></span> or <span style="color:#dd0000;"><kbd>Space</kbd></span></kbd></span></td>
<td>Print next message</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>!</kbd></span></td>
<td>Escape to shell</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>d</kbd></span></td>
<td>Delete current message and move to next</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>u</kbd></span></td>
<td>Undelete previously deleted message</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>h</kbd></span></td>
<td>Display message header</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>r</kbd></span> <em>user</em></td>
<td>Reply to user</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>s</kbd></span><em> filename</em></td>
<td>Save message to file (default mbox)</td>
</tr>
<tr>
<td><span style="color:#dd0000;"><kbd>x</kbd></span></td>
<td>Put all messages back in mailfile without changes and exit</td>
</tr>
<tr>
<th align="left"><span style="color:#dd0000;"><kbd>?</kbd></span></th>
<th align="left">Print command summery (help)</th>
</tr>
</tbody>
</table>
<h3>Elm</h3>
<p>Elm works in much the same way as does <span style="color:green;"><kbd>mail</kbd></span>, however the user interface is a bit better and it offers you menus as well as a list of available commands for each section as you enter it.<br />
<span style="color:green;"><kbd>Elm</kbd></span> is just as extensive if not more than <span style="color:green;"><kbd>mail</kbd></span>,  you can invoke <span style="color:green;"><kbd>elm</kbd></span> in three main different ways. Using <span style="color:#dd0000;"><kbd>elm</kbd></span> without any arguments will start <span style="color:green;"><kbd>elm</kbd></span> in am interactive way so as to allow you to read, send, forward mail,&#8230;. You can start <span style="color:green;"><kbd>elm</kbd></span> using <span style="color:#dd0000;"><kbd><em>elm -s hello mark</em></kbd></span>, this would start elm directly in the editor (see bellow for details about mail editors), where you would be sending a message to mark with the subject hello (-s is used to indicate the mail subject, if not specified on the command line you will be prompted for one).<br />
The third most common way to start <span style="color:green;"><kbd>elm</kbd></span> is to  use <span style="color:#dd0000;"><kbd>elm -s <em>sendingdata mark &lt; file.h</em></kbd></span>. This would in effect mail the file called file.h to mark with the subject being sendingdata.<br />
Note that here mark is used as an alias (aliases can be defined from the options menu in elm), you can use a full internet/uucp address instead, so that <span style="color:#dd0000;"><kbd>elm -s hello mark@university.ac.uk &lt; file.h </kbd></span>you also be a valid command line invocation of <span style="color:green;"><kbd>elm</kbd></span></p>
<p>.</p>
<p>Other useful command line option to <span style="color:green;"><kbd>elm</kbd></span> are as follows,  <span style="color:#dd0000;"><kbd>elm -h</kbd></span> or <span style="color:#dd0000;"><kbd>elm -?</kbd></span> will give you a listing of all options as well as their use, <span style="color:#dd0000;"><kbd>elm -f <em>filename</em></kbd></span> will read mail from the file specified instead of INBOX, <span style="color:#dd0000;"><kbd>elm -i <em>filename</em> </kbd></span>will cause the file specified to be included in the editor as part of the outgoing message, and <span style="color:#dd0000;"><kbd>elm -z</kbd></span> will check if there is new mail, if not <span style="color:green;"><kbd>elm</kbd></span> won&#8217;t start.</p>
<h2>Introducing Pine</h2>
<p>Like <span style="color:green;"><kbd>mail</kbd></span> and <span style="color:green;"><kbd>elm</kbd></span>,  <span style="color:green;"><kbd>pine</kbd></span> is an Internet mailer, but <span style="color:green;"><kbd>pine</kbd></span> is also a newsreader. Reading news or email is achieved in exactly the same way, with the exception that when reading mail, it will be read from either the INBOX or a mail folder, but the news is read either directly from the news server or from a news spool file (depending on your set-up).<br />
Pine is designed to be highly interactive, it is very easy to use, and the menu navigation is well implemented. All you really need to do is use your arrow keys and the spacebar or CR to navigate threw the messages. One major advantage to pine is that it will flag your messages as read, answered, urgent, important or new. You can set your own flag by using the <span style="color:#dd0000;"><kbd>+</kbd></span> when reading your messages and then execute macros on them.</p>
<p>To start <span style="color:green;"><kbd>pine</kbd></span> just type <span style="color:#dd0000;"><kbd>pine</kbd></span>. If you want to start  <span style="color:green;"><kbd>pine</kbd></span> directly in the editor, use <span style="color:#dd0000;"><kbd>pine <em>eaddress</em></kbd></span> where <em>eaddress</em> is the internet address of the recipient (<span style="color:green;"><kbd>pine</kbd></span> does not deal with UUCP mail properly, if you want to use UUCP use <span style="color:green;"><kbd>elm</kbd></span>). If you use  <span style="color:#dd0000;"><kbd>pine -f <em>folder</em></kbd></span>, this will cause <span style="color:green;"><kbd>pine</kbd></span> to read your mail from the specified folder instead of the default mailbox, <span style="color:#dd0000;"><kbd>pine -i</kbd></span> will start <span style="color:#dd0000;"><kbd>pine</kbd></span> in the FOLDER INDEX so that you can start selecting mail to read immediately, <span style="color:#dd0000;"><kbd>pine -h</kbd></span> displays all commands available as well as their usage, <span style="color:#dd0000;"><kbd>pine -F <em>file</em></kbd></span> will display file in pine&#8217;s editor, <span style="color:#dd0000;"><kbd>pine -sort <em>sort string</em></kbd></span> will cause pine to sort messages in the order specified (<span style="color:#dd0000;"><kbd>valid orders are, arrival, subject, from, date, size, orderdsubj or reverse, add /reverse if you want to sort in reversed order</kbd></span>).<br />
There are many specialised functions in pine as well as in the other mailreaders, to find those out read the online help files provided with each mailer.</p>
<h3>Editors</h3>
<p>To change the editor used by the mailers you will need to set an environment variable. <span style="color:#dd00dd;"><kbd>EDITOR=</kbd></span><em>whatever editor you like to use</em> can be any valid editor such as those described in the former sections.<br />
<span style="color:#dd00dd;"><kbd>EDITOR=emacs</kbd></span> or <span style="color:#dd00dd;"><kbd>EDITOER=jove</kbd></span> are but two examples.<br />
Note that when using <span style="color:green;"><kbd>pine</kbd></span> the default editor has a wrap facility, which can be very useful.</p>
<hr />
<h2>The World Wide Web</h2>
<p>The WWW is an internet form of document/information distribution which is growing in both popularity and importance, initially it could handle on text, but has now expanded to contain not only graphics but sounds as well as fully interactive contents, such as programs, grams, videos&#8230;.<br />
There are many <strong>browsers</strong> about, but here we will just briefly mention two, Lynx and Netscape. Lynx is a text based browser and can handle only textual documents, ignoring anything else, as such it has greatly decreased in popularity, but it is still used on systems which do not support full graphical displays.<br />
Type <span style="color:#dd0000;"><kbd>lynx</kbd></span>, and you will get a hypertext document describing how to use it as well as a list of links where you can find more detailed information about the browser. Navigation is relatively simple use the numbers keypad as illustrated in the diagram:</p>
<p><img src="http://belgarath.org/guide/keys.gif" alt="Number KeyMap" align="right" /></p>
<p>To go to a specific URL use <span style="color:#dd0000;"><kbd>g</kbd></span>, this will bring up a prompt asking you for the url, type it in and press CR. Lynx will then open the documents for you.<br />
Use <span style="color:#dd0000;"><kbd>m</kbd></span> to go back to the starting document, <span style="color:#dd0000;"><kbd>i</kbd></span> to view an index of documents and <span style="color:#dd0000;"><kbd>o</kbd></span> to go to the options menu from where many other more details functions of lynx can be used.<br />
Netscape will not run under the command line in UNIX you will need to use the X Windows System to be able to run Netscape.<br />
Once under X simply type <span style="color:#dd0000;"><kbd>netscape</kbd></span> or on some systems you can use a specific version of netcsape by adding it to the name of the executable as <span style="color:#dd0000;"><kbd>netscape-2.0</kbd></span> (this will start version 2).<br />
Netscape supports all the latest tricks of the HTML trade, such as sound, video, executable content and scripting. Because of its graphical nature navigation is very simple. Use the scroll bars to scroll threw a document, the reload button to reload a page, and type the URL in the box provided, or simply use the Open Location (from the file menu) to open a URL. You can use Open File to open a local file.</p>
<p>One thing to note when using Netscape, is that because most web pages are highly graphical in content, netscape will eventually use all the colours available on your system, and starting any other application which requires colours will result in either distorted colours or the application not starting. To prevent this type the following when invoking netscape <span style="color:#dd0000;"><kbd>netscape -install</kbd></span>. This will prevent netscape taking all the colours and you may use other applications which requires colour (such as a paint program).</p>
<p>Netscape also allows you to read your Mail and News from within its environment, to use these options you should select the mail and new preferences option from the options menu, to set your email (found under the Identity tab) and the specific servers to use (These might be set-up for you already but you will still have to enter your email address).<br />
To learn how to use Netscape in depth just use the options provided in the Help menu, which will take you to on line documentation and tutorials.</p>
<hr /><img src="http://belgarath.org/guide/network.gif" alt="Networking Title" /></p>
<p>Commands covered in this section: <span style="color:green;">rlogin telnet sz rz ping finger who rwho talk write mesg</span></p>
<h2>Logging into Remote Computers</h2>
<p>There are times when you will need to log into a <strong>remote computer</strong> to do this there are several commands available on the UNIX systems. Use <span style="color:#dd0000;"><kbd>rlogin <em>hostname</em> </kbd></span>to log into the computer called <em>hostname</em>. You will be accessing that computer as if it was the machine you are using, this means that your environment settings will be effective for that <span style="color:green;"><kbd>rlogin</kbd></span> (the shell that account is set-up with will be operational, so if you are using zsh and that account is set to use bash on login you will be using the bash shell).  On occasions the need may arise for you to log into a remote host using another userid. to do this use <span style="color:#dd0000;"><kbd>rlogin -l <em>userid hostname</em></kbd></span>. This will allow you to log into <em>hostname</em> under a different identity, which will remain effective during that session.<br />
<strong>Note:</strong> Some UNIX systems inverse the order of the <em>hostname</em> and <em>userid</em> so if the example given above does not work use <span style="color:#dd0000;"><kbd>rlogin <em>hostname</em> -l <em>userid</em></kbd></span>.<br />
You will need to have a password for the account you are trying to log into or have permission to use it without a password.</p>
<hr />
<h2>Using Telnet</h2>
<p>Telnet is a well known internet utility and as such it is available on most systems, the most important difference  between <span style="color:green;"><kbd>rlogin</kbd></span> and <span style="color:green;"><kbd>telnet</kbd></span> is that you cannot use  <span style="color:green;"><kbd>rlogin</kbd></span> with PC based networks, it will only work on UNIX networks. To access PC networks use <span style="color:green;"><kbd>telnet</kbd></span></p>
<p>Type <span style="color:#dd0000;"><kbd>telnet <em>hostname</em></kbd></span> to connect directly to the machine specified by <em>hostname</em>, if you want to  connect to a specific port type <span style="color:#dd0000;"><kbd>telnet <em>hosname port</em></kbd></span> (note, space required). The <em>hostname</em> can be either a full name such as crocus.csv.warwick.ac.uk or it can be a simple IP address as 128.83.165.133 If you just type telnet without supplying a <em>hostname</em> you will get the <span style="color:green;"><kbd>telnet</kbd></span> prompt which looks as this: <span style="color:#dd0000;"><kbd>telnet&gt; </kbd></span>at this prompt you can use any of the telnet commands described bellow.<br />
<strong>Note:</strong> To use any of these command s you will need to be at the <span style="color:green;"><kbd>telnet</kbd></span> prompt, if you are in a telnet session to escape use <span style="color:#dd0000;"><kbd>Ctl &amp; ]</kbd></span> to get to the prompt (you connection to the remote computer will not be lost).</p>
<table border="3" bgcolor="#ccffff">
<tbody>
<tr bgcolor="#ffdddd">
<th>Command</th>
<th>Short Format</th>
<th>Parameters</th>
<th>Action</th>
</tr>
<tr>
<td>open</td>
<td>o</td>
<td><em>hostname (port)</em></td>
<td>Opens a new telnet connection to remote computer</td>
</tr>
<tr>
<td>close</td>
<td>c</td>
<td>none</td>
<td>Closes your current connection to remote computer and returns you to the telnet prompt</td>
</tr>
<tr>
<td>quit</td>
<td>q</td>
<td>none</td>
<td>As close but exits from the telnet utility completely.</td>
</tr>
<tr>
<td>status</td>
<td>st</td>
<td>none</td>
<td>Displays telnet status</td>
</tr>
</tbody>
</table>
<hr />
<h2>Advanced Telnet Use</h2>
<p>Telnet provides may option allowing you to make more advanced use of the networking facilities offered by UNIX, we will here describe a few of the most commonly used.<br />
<span style="color:green;"><kbd>z</kbd></span> allows you to either suspend telnet and return to your shell or to start a subshell, this will mostly depend  on your system set-up, but the end result will be practically the same, you will be working in your sub/shell while the  remote connection is suspended. On most UNIX systems this means that you will be able to use <span style="color:green;"><kbd>rz</kbd></span> or  <span style="color:green;"><kbd>sz</kbd></span> to receive (or send) files via the Zmodem transfer protocol.(see bellow)<br />
<span style="color:green;"><kbd>m</kbd></span> or <span style="color:green;"><kbd>mode</kbd></span> Will allow you to change the modes of transmission between the two computers. This will effect the  speed of transfer as well as the way the data is transferred(note: both computers need to support these option for  mode to work, try it, if it starts complaining, it doesn&#8217;t support that mode!).</p>
<ul type="disc">
<li><span style="color:#dd0000;"><kbd>mode c</kbd></span> will cause transmission to be in the character form, so that each character you type at your terminal will be immediately transferred to the remote computer. This mode is very efficient when you are telneting to a  computer located on the same network as your own, or one that is very close. if you are communicating with a computer that  is far use the next mode.</li>
<li><span style="color:#dd0000;"><kbd>mode l</kbd></span> sets the communication to be in line mode. This will cause telnet to wait until you have pressed ENTER before transmitting, and it will then transmit the whole of your line. This is faster as all your data is sent in as little data packets as possible.</li>
</ul>
<h3>sz amp rz</h3>
<p>These two utilities are used in conjunction to telnet to send and receive files using the <strong>Zmodem Protocol</strong>. Use the <span style="color:green;"><kbd>z</kbd></span> telnet command as described above, then type  <span style="color:#dd0000;"><kbd>binary on</kbd></span> to switch from ASCII transfer to binary transfer, start the <span style="color:green;"><kbd>rz</kbd></span> in the background by  typing <span style="color:#dd0000;"><kbd>bg rz</kbd></span>. This will cause the system to wait for a Zmodem transfer. Then bring the telnet session back to the foreground (see section on Controlling Processes for details on how to use <span style="color:green;"><kbd>fg bg</kbd></span>, &#8230;) and start the sending the file in Zmodem.<br />
Because of the wonders of the Zmodem Protocol all the necessary setting will be in set-up by the two computers and the file transmitted, once the rz job is finished your file will be received. To send a file use the same procedure but type <span style="color:#dd0000;"><kbd>bg sz <em>filename</em></kbd></span>, and instruct the remote computer to  receive the file.</p>
<hr />
<h2>Computer Status</h2>
<p>Telnet connections refused? Unable to rlogin? The computer you are trying to access might be down. To find out if it is the remote computer or your utility type <span style="color:#dd0000;"><kbd>ping <em>hostname</em></kbd></span> . This give you either <em>hostname</em> is alive or <em>hostname</em> is not responding (some say dead!).<br />
If when you type <span style="color:#dd0000;"><kbd>ping <em>hostname</em></kbd></span> you get no response for a long time, then the remote computer is either dead or remote connections have been disabled. Try later!</p>
<hr />
<h2>Finding all about a Remote User</h2>
<p>There are time, when we need to (or would like to) know as much as possible about a given user. To do so use <span style="color:#dd0000;"><kbd>finger <em>userid</em></kbd></span> This will give you something like:</p>
<p><span style="color:green;"><kbd> [localhost]<br />
Login name: lauvj  In real life: Mr F Blaskovic<br />
Directory: /home/crocus8/la/uvj<br />
Shell: /usr/local/bin/zsh<br />
Mr F Blaskovic (lauvj) is not presently logged in.<br />
Last seen at crocus on Sun Aug 18 12:39:05 1996 from somewhere.com<br />
Mail forwarded to someplace.on.the.net<br />
</kbd></span><br />
This is the long version of the output given by finger. (which is usually the default on localhosts). If it isn&#8217;t the default use <span style="color:#dd0000;"><kbd>finger - l <em>userid</em></kbd></span>, or if it is the default and you want the short format use <span style="color:#dd0000;"><kbd>finger -s <em>userid</em></kbd></span>.<br />
If you have a file called .plan or .project, those will be displayed. Note in the above example there is a reference to main being forwarded followed by the address to where the mail is forwarded. This will be displayed if the user has a .forward file in their home directory.<br />
If you don&#8217;t want to wait for finger to display the .plan, .project or .forward files use <span style="color:#dd0000;"><kbd>finger -p <em>userid</em></kbd></span>.</p>
<p>Use <span style="color:#dd0000;"><kbd>finger -<em>options userid@hostname</em></kbd></span> to find a user at hostname, or any user that matches the string <em>userid</em>. If you are on a network with several hosts instead of using <span style="color:#dd0000;"><kbd>finger <em>userid</em></kbd></span>, use  <span style="color:#dd0000;"><kbd>finger -<em>options userid@</em></kbd></span> this will search all your <strong>LAN</strong> hosts machines. Use <span style="color:#dd0000;"><kbd>finger -<em>options @hostname</em></kbd></span> to get a listing of all users on <em>hostname</em></p>
<hr />
<h2>Finding Users with who</h2>
<p>To find out about users, processes on your machine use who. <span style="color:green;"><kbd>who</kbd></span> will display a list of users in this format:</p>
<table border="0">
<tbody>
<tr>
<td><span style="color:green;">root</span></td>
<td><span style="color:green;">-tty03</span></td>
<td><span style="color:green;">Aug 20 03:42</span></td>
</tr>
<tr>
<td><span style="color:green;">frankie</span></td>
<td><span style="color:green;">+tty01</span></td>
<td><span style="color:green;">Aug 20 10:22</span></td>
</tr>
<tr>
<td><span style="color:green;">matt</span></td>
<td><span style="color:green;">+tty20</span></td>
<td><span style="color:green;">Aug 20 19:03</span></td>
</tr>
<tr>
<td><span style="color:green;">ops</span></td>
<td><span style="color:green;">-tty00</span></td>
<td><span style="color:green;">Aug 20 00:00</span></td>
</tr>
</tbody>
</table>
<p>As show the output will include the login name of the users, the tty, date and time. If you use <span style="color:#dd0000;"><kbd>who -T</kbd></span>, before the tty a + or &#8211; will be displayed (as above), this indicates whether you can write to the terminal or not (a + means that you can write to the terminals and &#8211; you can&#8217;t). The <span style="color:#dd0000;"><kbd>who -m</kbd></span> will show you the equivalent of the <span style="color:green;"><kbd>who am i</kbd></span> command, all the information you need about yourself.<br />
Another useful option to <span style="color:green;"><kbd>who</kbd></span> is -H which will put a header above each column of the output.</p>
<h3>who for Remote Users</h3>
<p>The who command can be used in the same way as you would use who, but will display information about remote users instead of local ones.<br />
Use <span style="color:#dd0000;"><kbd>rwho <em>hostname</em></kbd></span>, to get a list of all users logged in at <em>hostname</em>. To get a listing as that which is produced by who, type <span style="color:#dd0000;"><kbd>rwho -l <em>hostname</em></kbd></span>. And a useful switch is -a which will produce a report on the specified machine even if no users are logged in.</p>
<hr />
<h2>Talking to Other Users</h2>
<p>If you need to talk to another user use <span style="color:green;"><kbd>talk</kbd></span>.  First you will need to know at what machine the person you want to talk to is logged on (use <span style="color:green;"><kbd>finger, rusers</kbd></span>, &#8230; to find out).<br />
Type <span style="color:#dd0000;"><kbd>talk <em>userid@hostname</em></kbd></span> where <em>userid</em> is the login name of the person you want to talk to and <em>hostname</em> is the machine where s/he is logged on (don&#8217;t forget the @ sign!).<br />
If the person you want to talk to is still logged in s/he will get a message that looks like:</p>
<p><span style="color:green;"><kbd> Message from Talk_Daemon@darkstar at 16:00 ...<br />
talk: connection requested by user@darkstar.<br />
talk: respond with: talk user@darkstar</kbd></span></p>
<p>To respond  you would type <span style="color:#dd0000;"><kbd>talk user@darkstar</kbd></span>, your screen will then split in two. All you type will appear in the top half and what the person talking with you type will appear on the bottom part.<br />
You will quickly notice that your screen becomes a mess, to clear it use <span style="color:#dd0000;"><kbd>Ctl &amp; L</kbd></span>. To quit from the talk  connection use <span style="color:#dd0000;"><kbd>Ctl &amp; C</kbd></span>. This will terminate the talk session and return you to your shell.</p>
<h2>Using Talk Across Networks</h2>
<p>To use talk across networks you need to know the machine name as well as the hostname for the person whom you want to talk with. Best way to find that out is to ask them! Alternatively use <span style="color:green;"><kbd>finger</kbd></span>.<br />
type <span style="color:#dd0000;"><kbd>talk userid@machinename.hostname</kbd></span>, for example you would use lauvj@crocus.warwick.ac.uk to get in touch with me. Notice how you put the user name followed by the @ sign, the name of the machine (crocus), and then the hostname (here warwick.ac.uk).</p>
<hr />
<h2>Using Write</h2>
<p>To just write a message on another user&#8217;s screen use <span style="color:#dd0000;"><kbd>write <em>userid</em></kbd></span> or optionally <span style="color:#dd0000;"><kbd>write <em>userid</em> tty<em>nn</em></kbd></span>, where nn is the tty number the user is using. After you typed in the command type in any text/messages you wish to send. then end it with a <span style="color:#dd0000;"><kbd>Ctl &amp; C</kbd></span>.<br />
That person will then receive something like:</p>
<p><span style="color:green;"><kbd> Message from <em>yourid yourtty</em><br />
The message you typed in.<br />
</kbd></span></p>
<hr />
<h2>Stopping Messages</h2>
<p>Some times you just don&#8217;t want other people disturbing your work, and having talk  requests and messages popping up all over the place can be very disturbing.<br />
To stop any messages use <span style="color:#dd0000;"><kbd>chmod -w /dev/tty</kbd></span> or you can use  <span style="color:#dd0000;"><kbd>mesg n</kbd></span>. This will prevent you from being disturbed by the talk/write messages.<br />
<strong>Note:</strong> These commands won&#8217;t stop any messages from the superuser, the only way you can stop these is, not being logged on!</p>
<hr /><img src="http://belgarath.org/guide/compress.gif" alt="Compression" /></p>
<p>Commands covered in this section: <span style="color:green;"><strong>gzip compress tar gunzip uncompress gzcat</strong></span></p>
<h2>Saving Space</h2>
<p>However much space you&#8217;ve got, it&#8217;s still limited, and one 	day you&#8217;re going to wish you had more. You should regularly 	clean up your filespace by removing unwanted files, but there 	are usually some things you don&#8217;t use frequently, but still want 	to keep, such as completed assignments or old e-mail 	messages. These are perfect candidates for <strong>compression</strong>, a 	way of reducing the size of files using complex algorithms that 	take advantage of patterns in the file. This means that some 	files compress better than others, for example plain text is 	excellent, due the limited character range and repeated groups 	of letters found in natural language. Text files can typically 	be reduced to a third of their original size. Image files, 	however, often hardly compress at all, as their format (such as 	gif or jpeg) already uses compression. There is little point 	trying to compress an already compressed file, as any uneven 	distributions of characters and repeated sections have already 	be detected and replaced by a more compact encoding.</p>
<p>You can either compress files individually or collect groups 	of files or directories together and compress them into a single 	file. Each file actually takes up a certain minimum amount of 	space in the filesystem, regardless of its given size in 	bytes. This is known is the <strong>block size</strong>, and could be 	1K, 4K, or more. Any file smaller than this will still take up 	this amount of space. Therefore compressing small files is 	pointless, but if they are grouped together and compressed 	into a single file, they will take up much less space, because 	the large file will use the blocks more effectively, in 	addition to being compressed.</p>
<h2>Compressing files individually</h2>
<p>There are many programs for compressing files, and one of the 	most popular is <span style="color:green;"><strong>gzip</strong></span>. To use it simply 	give the name of the file, or files, to compress, for example 	<span style="color:#aa0000;"><strong><kbd>gzip 	      largefile</kbd></strong></span>. This will create a compressed file 	called <span style="color:green;"><strong>largefile.gz</strong></span>, deleting 	the original file. Another popular choice is the old <span style="color:green;"><strong>compress</strong></span> utility, which 	creates files with a <span style="color:green;"><strong>.Z</strong></span> extension, although 	it rarely compresses files as well as <span style="color:green;"><strong>gzip</strong></span>.</p>
<h2>Compressing files collectively</h2>
<p>This is a two stage process; the files are grouped into one 	large file, which is then compressed as discussed above. The 	grouping can be performed using the <span style="color:green;"><strong>tar</strong></span> program (for 	<strong>T</strong>ape <strong>AR</strong>chive, although 	a tape device doesn&#8217;t have to be used). You need to specify 	<span style="color:green;"><strong>-cf</strong></span> as a 	option to <span style="color:green;"><strong>tar</strong></span>, 	to <strong>C</strong>reate a <strong>F</strong>ile archive (not a tape one). This 	is followed by the name of the archive you wish to create, 	usually with a <span style="color:green;"><strong>.tar</strong></span> extension. Finally you list the files and directories to be 	included in the archive. If a directory is given it will be 	added to the archive, along with its entire contents, 	including sub-directories. It is often best to put all the 	files you wish to group together into a directory and then you 	need only specify this directory. Also, when you extract the 	contents of the archive, the directory will be created (if it 	doesn&#8217;t exist), so all the extracted files will be contained 	on their own in a single directory.</p>
<p>For example, you have a directory called <span style="color:green;"><strong>project</strong></span> which contains 	everything you wish to compress. You could then do <span style="color:#aa0000;"><strong><kbd>tar -cf project.tar 	      project</kbd></strong></span>. It is a good idea to use the directory 	name as the archive name, after adding <span style="color:green;"><strong>.tar</strong></span>, so you can tell 	the contents of the archive from its name. This archive will be 	similar in size to the sum of the individual file sizes, as no 	compression has been performed yet. Therefore the last step is 	to do <span style="color:green;"><strong>gzip 	      project.tar</strong></span>, which will replace the file with 	<span style="color:green;"><strong>project.tar.gz</strong></span>, 	which may be considerably smaller than all the individual 	files. You can perform the whole operation using a pipe, by 	doing <span style="color:#aa0000;"><strong><kbd>tar -cf - project | gzip &gt; 	      project.tar.gz</kbd></strong></span>. Specifying a dash as 	the archive name causes <span style="color:green;"><strong>tar</strong></span> to send the 	archive to standard output, which is then piped to <span style="color:green;"><strong>gzip</strong></span> which reads 	it as input, redirecting the compressed output to the required 	filename.</p>
<p>Note that you can also use this technique to create backups of 	important files and directories. It conveniently groups files 	together, and compresses them to save space. Also note that 	sometimes the extension <span style="color:#006600;"><strong>.tgz</strong></span> is used as a 	short form of <span style="color:#006600;"><strong>.tar.gz</strong></span>.</p>
<h2>Uncompressing files</h2>
<p>Of course, there&#8217;s little point compressing files if you 	don&#8217;t know to uncompress them, but this is a simple matter. To 	uncompress <span style="color:green;"><strong>largefile.gz</strong></span> simply do 	<span style="color:#aa0000;"><strong><kbd>gunzip 	      largefile.gz</kbd></strong></span>. This will replace the compressed 	file with the uncompressed file <span style="color:green;"><strong>largefile</strong></span>. Using <span style="color:green;"><strong>gunzip</strong></span> is equivalent 	to <span style="color:green;"><strong>gzip -d</strong></span>. As 	with many UNIX commands you can specify a group of files using 	wildcards, so <span style="color:#aa0000;"><strong><kbd>gunzip 	      *.gz</kbd></strong></span> will uncompress all the files in the 	current directory that have been compressed using <span style="color:green;"><strong>gzip</strong></span>. If you used the 	<span style="color:green;"><strong>compress</strong></span> command, the process is reversed with the aptly named <span style="color:green;"><strong>uncompress</strong></span> command.</p>
<p>To extract the contents of a <span style="color:green;"><strong>tar</strong></span> archive, after 	uncompressing it if necessary, use <span style="color:green;"><strong>tar</strong></span> with options <span style="color:green;"><strong>-xf</strong></span>, for 	e<strong>X</strong>tract from a <strong>F</strong>ile archive. So, for example, 	<span style="color:#aa0000;"><strong><kbd>tar -xf 	      project.tar</kbd></strong></span> would create a directory called 	<span style="color:green;"><strong>project</strong></span>, if it 	doesn&#8217;t already exist, and extract all the files and 	sub-directories into it. Again, a pipe can be used to combine 	the two operations of uncompressing and extracting by doing 	<span style="color:#aa0000;"><strong><kbd>gunzip -c project.tar.gz | tar -xf 	      -</kbd></strong></span>. The <span style="color:green;"><strong>-c</strong></span> option (where 	available <span style="color:green;"><strong>gzcat</strong></span> and be used in place of <span style="color:green;"><strong>gunzip 	      -c</strong></span>) writes the uncompressed contents to 	standard output, leaving the original file unchanged, and the 	dash on its own is used in this case to specify standard input 	as the source of the tar achive. Keeping the original file 	unchanged is often useful as less space is required for the 	operation and if you want to keep the file you&#8217;d have to 	compress it again, if you had performed the operations 	separately.</p>
<hr /><img src="http://belgarath.org/guide/helpyslf.gif" alt="Helping Yourself" /></p>
<p>Commands covered in this section: <span style="color:green;">man</span></p>
<h2>The On-line Manual</h2>
<p>Each system has its <span style="color:green;">man</span> (short for manual) pages, they usually have detailed information on what a given command does, its syntax, any optional settings, the output it produces, and the various context in which it can be used. But this is not all the man pages can do for you. They also have details of system calls, functions/routines used for UNIX programming and file formats, in a few words you learn all your UNIX by using the man pages and by practise. So use the man command and learn&#8230;.</p>
<hr />
<h2>Reading a man page</h2>
<p>Nothing simpler! (Who said UNIX was complex), type <span style="color:#dd0000;"><kbd>man <em>name</em></kbd></span>, where name is the name of the command you wish to know more about. This will display the manual page for that command on your screen. You might want to keep the page for future reference, if this is the case type <span style="color:#dd0000;"><kbd>man <em>name</em> | col -b &gt; <em>filename</em></kbd></span>. This will convert your manual pages to ASCII format and then store the page in a file for you.</p>
<hr />
<h2>Man for Programmers</h2>
<p>What usually happens is that <span style="color:green;"><kbd>man</kbd></span> displays only the first manual page, this is because the others, in most cases, contain details of how the command is used in a shell script/program. You might want this information, to display all the manual pages for a given command use <span style="color:#dd0000;"><kbd>man -a <em>name</em></kbd></span>.</p>
<p>Another useful feature of <span style="color:green;"><kbd>man</kbd></span> is that if you use <span style="color:#dd0000;"><kbd>man -w <em>name</em></kbd></span>, <span style="color:green;"><kbd>man</kbd></span> will display the location of the manual pages for the command specified by name, this information can then be used as the need may be.</p>
<hr />
<h2>Searching for a Command</h2>
<p>If you are looking for a specific command but either can&#8217;t remember its name or spelling use <span style="color:#dd0000;"><kbd>man -k <em>keyword</em></kbd></span>. This will cause man to search a database of on-line descriptions of manual pages and to display any matches found, <span style="color:#dd0000;"> man -k </span> will tell you all you need to know on how to use man.<br />
You can also use <span style="color:#dd0000;"><kbd>man -h </kbd></span>to give a help message and exit.</p>
<hr />
<h2>Advanced Use of man</h2>
<p>By default <span style="color:green;"><kbd>man</kbd></span> will use the <strong>more pager</strong>. You can change the pager <span style="color:green;"><kbd>man</kbd></span> uses by typing  <span style="color:#dd0000;"><kbd>man -P <em>pager name</em></kbd></span>, where pager can be any pager that is locally available (for example less) and name is the name of your command.<br />
Another useful feature of <span style="color:green;"><kbd>man</kbd></span> is the -M option. Use <span style="color:#dd0000;"><kbd>man -M path <em>name</em></kbd></span>, where path is a path to look for the manual pages, and name you command. This feature is particularly useful if the manual page you are looking for is not in your <span style="color:#dd00dd;">MANPATH</span>, or is on another system.</p>
<hr />
<h2>Environment variable for man</h2>
<p>The following three environment variables effect the functions of man, you can override then by using the appropriate command line argument, but if you are planning to use these value often put them in the environment variables!</p>
<p><span style="color:#dd00dd;">PAGER</span> =  the name of the pager to use for viewing of man pages<br />
<span style="color:#dd00dd;">MANPATH</span> = A list of path names, separated by colons, indicating the directories to search for man pages.<br />
<span style="color:#dd00dd;">MANSEC</span> = A list of manual sections to display (also colon separated).<br />
Changing the values of any of these will effect how your man pages are found, displayed and which section of the man pages are displayed!</p>
<hr />Copyright ©1996 to <a href="mailto:matt@belgarath.demon.co.uk%20%28Matt%29">Matt Chapman </a> &amp; <a href="mailto:lauvj@csv.warwick.ac.uk%20%28Frankie%29">Frankie 	  Blaskovic</a> &#8211; All Rights Reserved</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattchapman.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattchapman.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattchapman.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattchapman.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattchapman.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattchapman.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattchapman.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattchapman.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattchapman.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattchapman.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=20&subd=mattchapman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattchapman.wordpress.com/2009/01/03/20/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1dddd0ddbf59073a08a7fafe367dc09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattchapman</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/intro.gif" medium="image">
			<media:title type="html">Introduction</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/logging.gif" medium="image">
			<media:title type="html">Logging In &#38; Out</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/explore.gif" medium="image">
			<media:title type="html">Exploration</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/dir1.gif" medium="image">
			<media:title type="html">directory structure</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/difference.gif" medium="image">
			<media:title type="html">Making a Difference</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/dir2.gif" medium="image">
			<media:title type="html">directory structure</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/edit.gif" medium="image">
			<media:title type="html">Editing and Printing Files</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/arrows.gif" medium="image">
			<media:title type="html">+</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/arrows.gif" medium="image">
			<media:title type="html">+</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/findingout.gif" medium="image" />

		<media:content url="http://belgarath.org/guide/easier.gif" medium="image">
			<media:title type="html">Making it Easier</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/process.gif" medium="image">
			<media:title type="html">Process Title</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/internet.gif" medium="image">
			<media:title type="html">Internet Title</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/graph1.gif" medium="image">
			<media:title type="html">NewsGroup Thread Map</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/keys2.gif" medium="image">
			<media:title type="html">Key Map</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/keys.gif" medium="image">
			<media:title type="html">Number KeyMap</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/network.gif" medium="image">
			<media:title type="html">Networking Title</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/compress.gif" medium="image">
			<media:title type="html">Compression</media:title>
		</media:content>

		<media:content url="http://belgarath.org/guide/helpyslf.gif" medium="image">
			<media:title type="html">Helping Yourself</media:title>
		</media:content>
	</item>
		<item>
		<title>The Lounge PC Part 2: Vista Media Center</title>
		<link>http://mattchapman.wordpress.com/2007/08/11/the-lounge-pc-part-2-vista-media-center/</link>
		<comments>http://mattchapman.wordpress.com/2007/08/11/the-lounge-pc-part-2-vista-media-center/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 12:19:40 +0000</pubDate>
		<dc:creator>mattchapman</dc:creator>
				<category><![CDATA[gadgets]]></category>

		<guid isPermaLink="false">http://mattchapman.wordpress.com/2007/08/11/the-lounge-pc-part-2-vista-media-center/</guid>
		<description><![CDATA[Continuing from part 1&#8230;
Installation
Installation of Vista itself was pretty straightforward and fast, with a nice graphical front end. After the usual business of installing updates and drivers, and rebooting a few times, it was time to take the latest edition of MCE for a spin.
Vista Media Center Edition (MCE)
Setup took a litte while but was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=5&subd=mattchapman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Continuing from <a href="http://mattchapman.wordpress.com/2007/07/11/the-lounge-pc-part-1/" title="part 1">part 1</a>&#8230;</p>
<p><strong>Installation</strong></p>
<p>Installation of Vista itself was pretty straightforward and fast, with a nice graphical front end. After the usual business of installing updates and drivers, and rebooting a few times, it was time to take the latest edition of MCE for a spin.</p>
<p><strong>Vista Media Center Edition (MCE)</strong></p>
<p>Setup took a litte while but was fairly straightforward. The dual digital tuners of the Terratec Cinergy 2400i were recognised and the full complement of  UK Freeview channels were detected.</p>
<p>Here&#8217;s a screenshot, running in windowed mode. It looks pretty nice in full screen mode on a large TV.</p>
<p><img src="http://mattchapman.files.wordpress.com/2007/08/vistamce1.jpg" alt="Vista Media Center #1" /></p>
<p>The Electronic Programme Guide (EPG) is good, and is very fast to scroll through. Press &#8220;Record&#8221; once to mark a single programme, press it again to record the whole series &#8211; just as easy as Sky+. You can also set a recording using a title or keyword search; matching programmes are shown as you type. Even if there are currently no matches, you can leave the record instruction there for when matches do appear. Similiarly series links remain even when there are no matches in the current listings &#8211; very useful when a programme is off-air for one week, or even when another series starts months later.</p>
<p><img src="http://mattchapman.files.wordpress.com/2007/08/vistamce2.jpg" alt="Vista Media Center #2" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mattchapman.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mattchapman.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattchapman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattchapman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattchapman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattchapman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattchapman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattchapman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattchapman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattchapman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattchapman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattchapman.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=5&subd=mattchapman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattchapman.wordpress.com/2007/08/11/the-lounge-pc-part-2-vista-media-center/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1dddd0ddbf59073a08a7fafe367dc09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattchapman</media:title>
		</media:content>

		<media:content url="http://mattchapman.files.wordpress.com/2007/08/vistamce1.jpg" medium="image">
			<media:title type="html">Vista Media Center #1</media:title>
		</media:content>

		<media:content url="http://mattchapman.files.wordpress.com/2007/08/vistamce2.jpg" medium="image">
			<media:title type="html">Vista Media Center #2</media:title>
		</media:content>
	</item>
		<item>
		<title>Icelandic Road Trip!</title>
		<link>http://mattchapman.wordpress.com/2007/07/18/icelandic-road-trip/</link>
		<comments>http://mattchapman.wordpress.com/2007/07/18/icelandic-road-trip/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 21:31:06 +0000</pubDate>
		<dc:creator>mattchapman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mattchapman.wordpress.com/2007/07/18/icelandic-road-trip/</guid>
		<description><![CDATA[Who&#8217;d have thought it &#8211; a remote peninsula at the most westerly point of Europe, and there&#8217;s a free wireless hotspot! There&#8217;s even a beautiful white sandy beach:

The most eventful thing to happen (so far!) is a tyre blow-out in our Toyota Land Cruiser. And not in the most convenient locations to change a tyre [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=6&subd=mattchapman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Who&#8217;d have thought it &#8211; a remote peninsula at the most westerly point of Europe, and there&#8217;s a free wireless hotspot! There&#8217;s even a beautiful white sandy beach:</p>
<p><a href="http://www.flickr.com/photos/mpchapman/847557468/" title="Photo Sharing"><img src="http://farm2.static.flickr.com/1010/847557468_998d252521_m.jpg" alt="Breiðav�k beach" height="160" width="240" /></a></p>
<p>The most eventful thing to happen (so far!) is a tyre blow-out in our Toyota Land Cruiser. And not in the most convenient locations to change a tyre &#8211; up a mountain on a steep, narrow, gravel road to nowhere.</p>
<p>Also of interest are the nearby Látrabjarg cliffs. At over 440m high these are home to thousands of razorbills, guillemots, and puffins:</p>
<p><a href="http://www.flickr.com/photos/mpchapman/846697759/" title="Photo Sharing"><img src="http://farm2.static.flickr.com/1189/846697759_ca70997562_m.jpg" alt="Puffins at Látrabjarg" height="160" width="240" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mattchapman.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mattchapman.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattchapman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattchapman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattchapman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattchapman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattchapman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattchapman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattchapman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattchapman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattchapman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattchapman.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=6&subd=mattchapman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattchapman.wordpress.com/2007/07/18/icelandic-road-trip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1dddd0ddbf59073a08a7fafe367dc09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattchapman</media:title>
		</media:content>

		<media:content url="http://farm2.static.flickr.com/1010/847557468_998d252521_m.jpg" medium="image">
			<media:title type="html">Breiðav�k beach</media:title>
		</media:content>

		<media:content url="http://farm2.static.flickr.com/1189/846697759_ca70997562_m.jpg" medium="image">
			<media:title type="html">Puffins at Látrabjarg</media:title>
		</media:content>
	</item>
		<item>
		<title>The Lounge PC Part 1: The Hardware</title>
		<link>http://mattchapman.wordpress.com/2007/07/11/the-lounge-pc-part-1/</link>
		<comments>http://mattchapman.wordpress.com/2007/07/11/the-lounge-pc-part-1/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 10:45:43 +0000</pubDate>
		<dc:creator>mattchapman</dc:creator>
				<category><![CDATA[gadgets]]></category>

		<guid isPermaLink="false">http://mattchapman.wordpress.com/2007/07/11/the-lounge-pc-part-1/</guid>
		<description><![CDATA[This will be a series of posts about putting together a computer (hardware and software) to be used in the lounge. These can be called PVRs (personal video recorders) or HTPCs (home theater PCs) but I&#8217;m not using those terms as I&#8217;m looking for something more general purpose. I want it to do all that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=4&subd=mattchapman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This will be a series of posts about putting together a computer (hardware and software) to be used in the lounge. These can be called PVRs (personal video recorders) or HTPCs (home theater PCs) but I&#8217;m not using those terms as I&#8217;m looking for something more general purpose. I want it to do all that but I also want to be able to use it for internet access, video editing, playing games etc.</p>
<p>After much research these are the components I selected (this was back in March so my choices might be different today):</p>
<ul>
<li>Antec Fusion MediaCentre case</li>
<li>Asus P5B-VM Micro ATX (Socket 775) PCI-Express DDR2 Motherboard</li>
<li>Intel Core 2 DUO E6600 &#8220;LGA775 Conroe&#8221; 2.40GHz</li>
<li>Akasa AK 955 &#8211; Processor cooler</li>
<li>GeIL 2GB (2&#215;1GB) PC6400C5 800MHz Value DDR2 Dual Channel Kit (GX22GB6400DC)</li>
<li>Samsung SpinPoint T HD501LJ 500GB SATA-II 16MB Cache</li>
<li>Terratec Cinergy 2400i DT DVB-T Dual Digital TV Tuner (PCI-Express)</li>
<li>Microsoft Windows Vista Home Premium</li>
</ul>
<p>This is very much phase 1 of the project &#8211; you may have noticed the absence of an optical drive and graphics card. The plan was to use an old DVD-ROM drive and integrated graphics (yes, really!) until phase 2 becomes possible (more on that later).</p>
<p>In this type of environment the case is extremely important, and the Antec Fusion delivers in spades:</p>
<p><a href="http://www.flickr.com/photos/mpchapman/774920899/" title="Photo Sharing"><img src="http://farm2.static.flickr.com/1181/774920899_0f20b75b55.jpg" alt="Lounge PC" height="237" width="500" /></a></p>
<p>In addition to its gorgeous brushed aluminum hi-fi  styling, the case is expertly designed to provide good airflow whilst keeping noise levels to a minimum. It does this with a well designed layout and two 120mm side fans. The case also includes a two line display and a decent 430W power supply, all at a price below similar but less well equipped cases. Maybe I was swayed by already owning a fanastic Antec P180 case, but the Fusion really is a great case. The only possible downside is that it only takes micro-ATX motherboards, restricting the choice of motherboards.</p>
<p>The Akasa CPU cooler doesn&#8217;t look much different to the stock cooler that came with the CPU, but it features 4-pin power management (PWM) so that the fan speed (and therefore noise) is kept to a minimum, based on the CPU temperature. Another consideration was the fairly low profile of this cooler &#8211; I looked at a Scythe Ninja cooler which can be used without any fans, but that would have needed to stick out of the top of the case by quite some distance!</p>
<p>There was less choice when it came to the TV tuner, as I wanted it to have two tuners and media center drivers for Vista. The TerraTec Cinergy fit the bill nicely, and was receiving good reviews.</p>
<p>In the next part I will look at the installation and configuration under Vista, and look at the features offered by Vista Media Center.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mattchapman.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mattchapman.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattchapman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattchapman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattchapman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattchapman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattchapman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattchapman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattchapman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattchapman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattchapman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattchapman.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=4&subd=mattchapman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattchapman.wordpress.com/2007/07/11/the-lounge-pc-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1dddd0ddbf59073a08a7fafe367dc09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattchapman</media:title>
		</media:content>

		<media:content url="http://farm2.static.flickr.com/1181/774920899_0f20b75b55.jpg" medium="image">
			<media:title type="html">Lounge PC</media:title>
		</media:content>
	</item>
		<item>
		<title>New Gadget: The Loc8tor</title>
		<link>http://mattchapman.wordpress.com/2007/07/03/new-gadget-the-loc8tor/</link>
		<comments>http://mattchapman.wordpress.com/2007/07/03/new-gadget-the-loc8tor/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 09:17:51 +0000</pubDate>
		<dc:creator>mattchapman</dc:creator>
				<category><![CDATA[cats]]></category>
		<category><![CDATA[gadgets]]></category>

		<guid isPermaLink="false">http://mattchapman.wordpress.com/2007/07/03/new-gadget-the-loc8tor/</guid>
		<description><![CDATA[My first proper post nicely combines two topics: gadgets and cats! The Loc8tor is described as a personal tracking device for locating valuables, pets, and children.
Each &#8220;thing&#8221; you want to track needs a tag, in this case a cat (called Millie, a.k.a Mildred, a.k.a. &#8216;Drid):

As you can see the tags are pretty small. You get [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=3&subd=mattchapman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My first proper post nicely combines two topics: gadgets and cats! The <a href="http://www.loc8tor.com/">Loc8tor</a> is described as a personal tracking device for locating valuables, pets, and children.</p>
<p>Each &#8220;thing&#8221; you want to track needs a tag, in this case a cat (called Millie, a.k.a Mildred, a.k.a. &#8216;Drid):</p>
<p><a href="http://www.flickr.com/photos/mpchapman/698756402/" title="Photo Sharing"><img src="http://farm2.static.flickr.com/1048/698756402_bebe5980e4_m.jpg" alt="The 'Drid" height="240" width="172" /></a></p>
<p>As you can see the tags are pretty small. You get two with the regular Loc8tor and four with the &#8220;plus&#8221; edition. You can also buy additional tags separately.</p>
<p>And then this unit does the tracking:</p>
<p><a href="http://www.flickr.com/photos/mpchapman/698758808/" title="Photo Sharing"><img src="http://farm2.static.flickr.com/1016/698758808_ba80ff1feb_m.jpg" alt="The 'Drid Loc8tor" height="240" width="235" /></a></p>
<p>After the straightforward process of registering each tags to the base unit, you&#8217;re ready to start tracking! Simply slide open the lid and press the gray button. Side note: one nice feature is the lack of an on/off button &#8211; it turns on when you press a button and turns itself off after being idle for a while.</p>
<p>Select from the list of registered tags and the unit will search for that tag. After a few seconds if the tag is in range you see bars on the screen and the beeping will start. Now begins the game of hot/cold &#8211; if you move closer to the tag the beeps will get faster and higher pitched and the bars on the screen will get longer, and the opposite happens if you move further away. So you need to try moving in different directions to determine how the signal strength varies. It takes a bit of practice but it works fairly well.</p>
<p>The range is listed as 183m with clear line of sight, but this is reduced quite significantly by windows and walls etc. Nevertheless this is an excellent gadget which has proved useful in finding our four wayward cats!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mattchapman.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mattchapman.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattchapman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattchapman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattchapman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattchapman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattchapman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattchapman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattchapman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattchapman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattchapman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattchapman.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=3&subd=mattchapman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattchapman.wordpress.com/2007/07/03/new-gadget-the-loc8tor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1dddd0ddbf59073a08a7fafe367dc09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattchapman</media:title>
		</media:content>

		<media:content url="http://farm2.static.flickr.com/1048/698756402_bebe5980e4_m.jpg" medium="image">
			<media:title type="html">The 'Drid</media:title>
		</media:content>

		<media:content url="http://farm2.static.flickr.com/1016/698758808_ba80ff1feb_m.jpg" medium="image">
			<media:title type="html">The 'Drid Loc8tor</media:title>
		</media:content>
	</item>
		<item>
		<title>Blog on!</title>
		<link>http://mattchapman.wordpress.com/2007/07/03/hello-world/</link>
		<comments>http://mattchapman.wordpress.com/2007/07/03/hello-world/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 08:27:38 +0000</pubDate>
		<dc:creator>mattchapman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Finally&#8230; it&#8217;s arrived. This blog will include all things gadgety, plus other stuff including photography, Iceland, computing, and also cats. Bring it on!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=1&subd=mattchapman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Finally&#8230; it&#8217;s arrived. This blog will include all things gadgety, plus other stuff including photography, Iceland, computing, and also cats. Bring it on!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mattchapman.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mattchapman.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattchapman.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattchapman.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattchapman.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattchapman.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattchapman.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattchapman.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattchapman.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattchapman.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattchapman.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattchapman.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mattchapman.wordpress.com&blog=1318209&post=1&subd=mattchapman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mattchapman.wordpress.com/2007/07/03/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1dddd0ddbf59073a08a7fafe367dc09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mattchapman</media:title>
		</media:content>
	</item>
	</channel>
</rss>