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

<channel>
	<title>Look for IT over here &#187; linux</title>
	<atom:link href="http://lookforitoverhere.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://lookforitoverhere.com</link>
	<description>IT related tutorials,tips, and generally my life on the net.</description>
	<lastBuildDate>Sat, 11 Feb 2012 11:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Reset Opensuse root password</title>
		<link>http://lookforitoverhere.com/312/reset-opensuse-root-password/</link>
		<comments>http://lookforitoverhere.com/312/reset-opensuse-root-password/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 04:27:38 +0000</pubDate>
		<dc:creator>indi</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[grub bootloader]]></category>
		<category><![CDATA[lilo bootloader]]></category>
		<category><![CDATA[OpenSuse]]></category>
		<category><![CDATA[root passwd]]></category>

		<guid isPermaLink="false">http://lookforitoverhere.com/?p=312</guid>
		<description><![CDATA[Forgotten the root password to your linux system? Don&#8217;t want to reinstall and lose your files or are you just plain lazy? Here is an easy way to reset the root password if you ever find yourself in that situation. I must admit, I was surprised how easy it was. I had an old test [...]]]></description>
			<content:encoded><![CDATA[<p>Forgotten the root password to your linux system? Don&#8217;t want to reinstall and lose your files or are you just plain lazy? Here is an easy way to reset the root password if you ever find yourself in that situation.</p>
<p>I must admit, I was surprised how easy it was. I had an old test box at home, and was too lazy to rebuild it so I did a bit of searching on the internet. What I describe below worked on OpenSuse 11.2, 11.3 and also 10.3.</p>
<p>For other distros and version, I cannot guarantee that it will work. But please leave a comment at the end of the post to let me and others know.</p>
<p>Turn the computer on and select the normal boot menu from the list:</p>
<p><a href="http://lookforitoverhere.com/wp-content/uploads/2010/10/OpenSUSE_0003.jpg"><img src="http://lookforitoverhere.com/wp-content/uploads/2010/10/OpenSUSE_0003.jpg" alt="OpenSUSE_boot screen" title="OpenSUSE_boot screen" width="350" height="262" class="aligncenter size-full wp-image-319" /></a></p>
<p>Once selected, tab down to the “Boot Options” box and type  in the following:</p>
<p><strong>init=/bin/bash</strong> if you are using GRUB Boot loader</p>
<p><strong>linux init=/bin/bash</strong> if you are using LILO Boot Loader</p>
<p>If you are not sure what sort of bootloader you are using (and I certainly didn&#8217;t), I did notice that just before the boot screen appeared there flashed a quick message indicating the grub bootloader was there.</p>
<p>This will throw you straight into a Bash shell prompt which comes up even before the Single User mode loads and has the “/” root file system mounted. How cool is that?</p>
<p>Do a <strong>mount</strong> command to check if the root file system “/” is mounted as Read-Write.</p>
<p>If you notice the screenshot below, you will see that mine was mounted.</p>
<p><a href="http://lookforitoverhere.com/wp-content/uploads/2010/10/OpenSUSE_0004.jpg"><img src="http://lookforitoverhere.com/wp-content/uploads/2010/10/OpenSUSE_0004.jpg" alt="OpenSUSE_mount" title="OpenSUSE_mount" width="350" height="113" class="aligncenter size-full wp-image-320" /></a></p>
<p>Next, simply type the <strong>passwd</strong> command and enter a new password (as per below):</p>
<p>opensuse_linux:~ # <strong>passwd</strong><br />
Changing password for root<br />
New Password:<br />
Reenter New Password:<br />
Password changed</p>
<p>Type in reboot and that&#8217;s pretty much it:</p>
<p>opensuse_linux:~ # <strong>reboot </strong></p>
<p>Now, if you&#8217;re thinking that your system in insecure because you can change the root password so easily, bear in mind that you will need physical access to the box in order to perform the above. Furthermore, you can secure things a bit by password protecting the BIOS of even the bootloader if so desired.</p>
<p>Hopefully, the above will work for you and save you a bit of heartache if you forget/lose your root password.</p>
<h4>Incoming search terms:</h4><ul><li>init 3 linux grub lost password</li><li>lilo bootloader</li><li>opensuse root password reset</li><li>opensuse root password</li><li>bootscree bootoption bin</li><li>opensuse reset root password</li><li>how to change root password in opensuse</li><li>suse /bin/bash</li><li>how to change root password in suse linux</li><li>suse linux enterprise 11 passwort umgehen</li><li>linux benutzer hack opensuse</li><li>opensuse default root password</li><li>suse root password recovery</li><li>lilo boot</li><li>forgot root password suse 11</li><li>suse root password</li><li>suse change root password</li><li>password root suse</li><li>reset password in opensuse</li><li>sles11 in single user mode booten</li><li>sles single user mode</li><li>start sles11 as root user</li><li>sles linux boot single user mode lost password root</li><li>sles 11 root default password</li><li>single user mode linux sles without password</li><li>root pw in open susu</li><li>root password SLES11</li><li>root password opensuse</li><li>root password hack from bash</li><li>root opensuse bash</li><li>restore desktop defaults linux opensuse</li><li>resetting root password suse linux</li><li>resetting root password on suse linux 11</li><li>reset root password sles</li><li>cambiar contraseña root opensuse</li><li>suse 10 reset root password</li><li>suse 11 passwort vergessen</li><li>SUSE11 boot into live cd change root password</li><li>suse single user mode</li><li>Suse root pswd datei</li><li>what is the default admin password for open suse</li><li>suse rescue login</li><li>suse linux root passwort setzen init=/bin/bash grub boot loader</li><li>suse linux root passwort setzen init=/bin/bash</li><li>suse linux enterprise 11 пароль по умолчанию root</li><li>recover root password sussie 11</li><li>suse linux 11 passwort vergessen</li><li>suse linux 11 password root</li><li>suse enterprise root passwort change</li><li>suse enterprise root passwort ändern</li><li>suse 12 single user mode reset root password</li><li>suse 12 root password</li><li>suse 11 single user mode bin/bash</li><li>what is default root pasword in suse linux</li><li>reset root passwd suse 11 3</li><li>reset passwrd on sles 11</li><li>opensuse passwort hacken</li><li>opensuse password recovery</li><li>default user root password suse enterprise linux</li><li>opensuse 12 reset root password</li><li>no recuerdo clave root suse 11</li><li>linux suse recovery password root</li><li>linux suse default root password</li><li>linux root single no pass login opensuse</li><li>forgot opensuse password</li><li>forgot password suse 10</li><li>jaki jest hasło root do suse11</li><li>how to reset suse linux root password</li><li>how to reset root password in opensuse</li><li>how to find password root of suse</li><li>how to change users password in open suse</li><li>how to change root passwords in suse</li><li>How do I Restore my Computer to Factory Settings for a linux suse desktop 11?</li><li>opensuse reset password</li><li>default password linux sles</li><li>reset password suse 11</li><li>reset linux password opensuse</li><li>recuperar password suse</li><li>recuperar password root suse enterprise 10 sp1</li><li>recuperar contraseña con LILO BOOT</li><li>change password user di suse</li><li>recover root password opensuse</li><li>recover root password in suse enterprise desktop 11 grub enable keyboard</li><li>recover root password in suse enterprise desktop 11</li><li>recover root password in suse enterprise 11</li><li>perdi password root suse 11</li><li>password suse enterprise</li><li>password for opensuse</li><li>change root password in sles 11</li><li>change root password on opensuse</li><li>openSUSE root login</li><li>opensuse root</li><li>how to change root password in suse</li></ul>]]></content:encoded>
			<wfw:commentRss>http://lookforitoverhere.com/312/reset-opensuse-root-password/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Build me a PC part 1</title>
		<link>http://lookforitoverhere.com/207/build-me-a-pc-part-1/</link>
		<comments>http://lookforitoverhere.com/207/build-me-a-pc-part-1/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 04:32:31 +0000</pubDate>
		<dc:creator>indi</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[AMD]]></category>
		<category><![CDATA[ATI]]></category>
		<category><![CDATA[Gigabyte]]></category>
		<category><![CDATA[OpenSuse]]></category>
		<category><![CDATA[Phenom]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[Seagate]]></category>

		<guid isPermaLink="false">http://lookforitoverhere.com/?p=207</guid>
		<description><![CDATA[One of my friends wanted me to build a PC from scratch, with the parts HE wanted (rather than a pre built one). So I thought &#8216;lets blog it from the very beginning to the end&#8217;. The challenge &#8211; a decent PC (not for gaming but one with a bit of grunt and the ability [...]]]></description>
			<content:encoded><![CDATA[<p>One of my friends wanted me to build a PC from scratch, with the parts HE wanted (rather than a pre built one). So I thought &#8216;lets blog it from the very beginning to the end&#8217;. </p>
<p>The challenge &#8211; a decent PC (not for gaming but one with a bit of grunt and the ability to run some virtual OS&#8217;s too)<br />
The budget &#8211; about AUD$500 but as a guide only. There was room for movement (just as well)</p>
<p>So the research began. AMD or intel CPU? What sort of motherboard? How much RAM? What sort of graphics card? And certainly how big a power supply to run it all? And after the hardware was sorted out, what OS did he want to run?</p>
<p>After much deliberation, we decided on the following hardware (or very similar):</p>
<p>AMD X4 Phenom II 9650 CPU (the general consensus was a quad core of some kind)<br />
Gigabyte motherboard<br />
4Gig RAM<br />
Sunflower case of some sort (a workmate told me they are pretty good)<br />
ATI graphics card (at least 512M)<br />
1TB Seagate Barracuda HDD<br />
SATA DVD burner</p>
<p>As far as the OS was concerned, my friend decided on wanting to run OpenSuse 11.1 as the main OS, and probably Vista X64 in a virtual image for the stuff he could not find Linux equivalents for.</p>
<p>So, off to the shop I went with him to buy all the gear.</p>
<p>Next post, I will share what harwdware we ended up getting and the total cost &#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://lookforitoverhere.com/207/build-me-a-pc-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux run shell script from terminal window</title>
		<link>http://lookforitoverhere.com/161/linux-run-shell-script-from-terminal-window/</link>
		<comments>http://lookforitoverhere.com/161/linux-run-shell-script-from-terminal-window/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 07:25:18 +0000</pubDate>
		<dc:creator>indi</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Shell script]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://lookforitoverhere.com/?p=161</guid>
		<description><![CDATA[I don&#8217;t use shell scripts too often and had a brain dead moment on how to execute a shell script. So, for the dummies , here&#8217;s a summary so next time I forget I can quickly look at my posts: For Creating Shell programs # vi filename.sh (vi is one of many text editors for [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t use shell scripts too often and had a brain dead moment on how to execute a shell script.</p>
<p>So, for the dummies <img src='http://lookforitoverhere.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> , here&#8217;s a summary so next time I forget I can quickly look at my posts:</p>
<p>For Creating Shell programs<br />
<strong># vi filename.sh</strong> <em>(vi is one of many text editors for linux systems)</em></p>
<p>For Running Shell Programs<br />
<strong># sh filename.sh</strong><br />
or<br />
<strong># chmod 744 filename.sh</strong> <em>(you need to change the permission so you, the owner, can execute the script)</em><br />
<strong>#./filename.sh </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lookforitoverhere.com/161/linux-run-shell-script-from-terminal-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux software equivalents</title>
		<link>http://lookforitoverhere.com/88/linux-software-equivalents/</link>
		<comments>http://lookforitoverhere.com/88/linux-software-equivalents/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 00:00:57 +0000</pubDate>
		<dc:creator>indi</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://lookforitoverhere.com/88/linux-software-equivalents/</guid>
		<description><![CDATA[Just made the switch to Linux from Windows (or even OS X?) and are having trouble finding software similar/equivalent to what you are used to? Yes, the linux learning curve is steep but rewarding when you do start working it all out. Here is a good website that lists the Windows/OS X software and the [...]]]></description>
			<content:encoded><![CDATA[<p>Just made the switch to Linux from Windows (or even OS X?) and are having trouble finding software similar/equivalent to what you are used to?</p>
<p>Yes, the linux learning curve is steep but rewarding when you do start working it all out.</p>
<p><a href="http://www.linuxappfinder.com/alternatives?page=1">Here</a> is a good website that lists the Windows/OS X software and the linux equivalents.</p>
<p>In a lot of cases there are multiple options which is good. You aren&#8217;t tied down to one thing which you may not like.</p>
]]></content:encoded>
			<wfw:commentRss>http://lookforitoverhere.com/88/linux-software-equivalents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home surveillance with Linux and Zoneminder made easy &#8211; Part II</title>
		<link>http://lookforitoverhere.com/78/home-surveillance-with-linux-and-zoneminder-made-easy-ii/</link>
		<comments>http://lookforitoverhere.com/78/home-surveillance-with-linux-and-zoneminder-made-easy-ii/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 22:29:06 +0000</pubDate>
		<dc:creator>indi</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[surveillance]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[zoneminder]]></category>

		<guid isPermaLink="false">http://lookforitoverhere.com/78/home-surveillance-with-linux-and-zoneminder-made-easy-ii/</guid>
		<description><![CDATA[My last post I gave a quick overview of my hardware (PC, camera and capture card) that I was using on my surveillance system. This post I will explain what OS and software I use. My operating system of choice for this &#8216;project&#8217; was SUSE. The initial reason was that learning Linux is (in my [...]]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://lookforitoverhere.com/60/home-surveillance-with-linux-and-zoneminder-i/">last post</a> I gave a quick overview of my hardware (PC, camera and capture card) that I was using on my surveillance system. This post I will explain what OS and software I use.</p>
<p>My operating system of choice for this &#8216;project&#8217; was SUSE. The initial reason was that learning Linux is (in my opinion) a bit easier because if I got stuck with the command line, I could always fall back (ie cheat) with the GUI which I found quite comfortable to use. Other Linux distros I had difficulty using. I am currently using SUSE 10.2 &#8211; a vast improvement over 9.3 which I previously used on another one of my boxes at home.</p>
<p>Next was the software. As I said in my previous post, I had troubles getting windows drivers to work, and when that was sorted out, I could not find any suitable software (for my needs anyway). The <a href="www.centerlink-international.com">PICO2000</a> software looks like what I was after, but as I wanted to use/learn Linux, I found a great product called <a href="http://www.zoneminder.com/">Zoneminder</a>.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0647661174998747";
//look deluxe code1
google_ad_slot = "3986336447";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>First looks at Zoneminder indicated that that it was a popular (and free) piece of software, great support and very customizable for your own needs. What the hell &#8211; I&#8217;ll give it a go.</p>
<p>I first installed Zoneminder a couple of years back all via the CLI &#8211; not a problem if you are conversant with the file structure of Linux, TAR etc. But it was a steep learning curve for me. I worked it all out in the end, but an easier way (if you&#8217;re using SUSE) is to install the RPM using YaST. <a href="http://www.zoneminder.com/wiki/index.php/Installing_using_ZoneMinder_RPMs_for_SuSE">Here</a> is the link for the SUSE RPMs. The beauty of doing it via YaST is that it can resolve your dependancies for you, so all the appropriate packages can be installed in one hit. </p>
<p>Anyway, I installed it without too many hassles. Next post I will show you some of the features and my setup.</p>
<h4>Incoming search terms:</h4><ul><li>zoneminder windows</li><li>zoneminder audio</li><li>zoneminder fedora 15</li><li>zoneminder ubuntu 11 04</li><li>zoneminder fedora 16</li><li>zoneminder distro</li><li>zoneminder iphone</li><li>pico2000 ubuntu</li><li>zoneminder fedora 14</li><li>ubuntu 11 04 zoneminder</li><li>fedora 16 zoneminder</li><li>ubuntu zoneminder</li><li>surveyllance distro</li><li>install zoneminder fedora 16</li><li>linux surveillance distributions</li><li>zoneminder record audio</li><li>zoneminder pico2000 seting</li><li>zoneminder pico ubuntu</li><li>pico 2000 en ubuntu</li><li>zoneminder guide</li><li>pico2000 i ubuntu</li><li>pico2000 opensuse</li><li>LINUX surveillance</li></ul>]]></content:encoded>
			<wfw:commentRss>http://lookforitoverhere.com/78/home-surveillance-with-linux-and-zoneminder-made-easy-ii/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Home surveillance with Linux and Zoneminder made easy &#8211; Part I</title>
		<link>http://lookforitoverhere.com/60/home-surveillance-with-linux-and-zoneminder-i/</link>
		<comments>http://lookforitoverhere.com/60/home-surveillance-with-linux-and-zoneminder-i/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 12:38:43 +0000</pubDate>
		<dc:creator>indi</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[dvr]]></category>
		<category><![CDATA[Pico2000]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[surveillance]]></category>
		<category><![CDATA[zoneminder]]></category>

		<guid isPermaLink="false">http://lookforitoverhere.com/60/home-surveillance-with-linux-and-zoneminder-i/</guid>
		<description><![CDATA[Want to set up a home surveillance system at home while having a bit of fun? Here&#8217;s a bit of a guide of what to do &#8211; or more so what I did and how. Originally this started as a bit of a project in my spare time, but after some teenage idiots decided to [...]]]></description>
			<content:encoded><![CDATA[<p>Want to set up a home surveillance system at home while having a bit of fun?</p>
<p>Here&#8217;s a bit of a guide of what to do &#8211; or more so what I did and how.</p>
<p>Originally this started as a bit of a project in my spare time, but after some teenage idiots decided to throw rocks and eggs at our place one night, it became more of a security thing as I wanted to catch those bastards!</p>
<p>Anyway, back to the good stuff. Not having a big budget, I decided to do a bit of reading and find how much a cheap setup would cost me.</p>
<p>First of all I needed a dedicated PC that I could &#8216;break&#8217; and it wouldn&#8217;t be a drama. Easy &#8211; I have a few lying around here and decided to go with a IBM Net Vista PIII 850 with 256M RAM and a 40 Gig hard drive. It&#8217;s nothing flash but a good stable PC. I also needed a video capture (DVR) card  and a camera. That&#8217;s where Ebay came in. </p>
<p>Ebay have these cheap 4 port capture (DVR)  cards that you can pick up for about $10. There are a few different types, and if you pay a few more dollars you can get one that processes more frames per second (fps) at a time.</p>
<p>One thing I did read quite often is that with these cheap cards, if you think you can run 4 cameras at real time, then you are dreaming. One or two cameras is bit more realistic. Don&#8217;t forget this was more of a project.</p>
<p>The card I got was called a Pico 2000 DVR card<br />
<strong>(Please take note of comment #1 at the end of the post)</strong>,<br />
and looks like this:</p>
<p><img src="http://lookforitoverhere.com/wp-content/uploads/_Pico2000%20DVR%20card.jpg" width="450" height="321" alt="Pico 2000 DVR card" title="Pico 2000 DVR card" /></p>
<p>The card comes with Windows drivers, and I can tell you now that getting this card to work under Windows (XP) was a real pain (and didn&#8217;t work with the drivers supplied) . I will do a separate article about using this under Windows as it deserves its own post. I ended up using Linux for my project.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0647661174998747";
//look deluxe code1
google_ad_slot = "3986336447";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Now, the camera &#8211; again from Ebay. Search for &#8216;Nightvision camera&#8217; and see how many results come up. You have a few options here as well. Whether you want a wired or wireless camera, color or B/W, and of course what physical size.</p>
<p>Here&#8217;s what I chose (but in a cream case). It&#8217;s a wired color camera, with 18 LEDs that does enable a bit of seeing in the dark:</p>
<p><img src="http://lookforitoverhere.com/wp-content/uploads/camera.jpg" width="310" height="229" alt="Nightvison camera" title="Nightvison camera" /></p>
<p>To connect the camera to the DVR card, I will use coax cable and terminate RCA plugs at either end. Not too hard to do if you&#8217;re handy with a soldering iron. Note: As you can see there are two connectors for the camera. One is for the video signal, and the other is for power, which comes from a standard plug pack transformer.</p>
<p>Next article, I will get into the OS and software that i used.</p>
<hr />
<p>Individuals who <a href="http://www.cheapratemortgage.com">buy to let mortgages</a> manage the rest often end up in debts. The term <a href="http://www.multiplyourwealth.com">investment</a> in unheard of to them. A <a href="http://www.lowmortgageoffer.com">home mortgage</a> deal is common enough and something almost everyone is dealing with, but these people do everything against the <a href="http://www.greatinsurancedeal.com">free insurance quotes</a> book.</p>
<h4>Incoming search terms:</h4><ul><li>pico 2000</li><li>pico2000 zoneminder</li><li>pico2000</li><li>linux ip ir camera</li><li>pico 2000 linux</li><li>ip-camera &amp; linux</li><li>pico 2000 download</li><li>pico 2000 kamera kartı</li><li>zoneminder</li><li>zoneminder for windows</li><li>zoneminder for windows xp</li><li>ubuntu pico2000</li><li>surveillance software linux ip camera</li><li>dvr linux</li><li>net keyboard dvr 2000</li><li>linux super dvr driver</li><li>Zoneminder support window xp</li></ul>]]></content:encoded>
			<wfw:commentRss>http://lookforitoverhere.com/60/home-surveillance-with-linux-and-zoneminder-i/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>UNIX/Linux VI made easy with this reference</title>
		<link>http://lookforitoverhere.com/63/vi-reference/</link>
		<comments>http://lookforitoverhere.com/63/vi-reference/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 10:22:35 +0000</pubDate>
		<dc:creator>indi</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[VI]]></category>

		<guid isPermaLink="false">http://lookforitoverhere.com/63/vi-reference/</guid>
		<description><![CDATA[The most common editor used in UNIX/Linix type operating systems is without a doubt VI. But it can be a pain to remember all the commands used to edit text files/configs and the like. Here is a quick reference for more than enough commands to keep you busy. My favourite &#8216;get out of trouble&#8217; command [...]]]></description>
			<content:encoded><![CDATA[<p>The most common editor used in UNIX/Linix type operating systems is without a doubt VI. But it can be a pain to remember all the commands used to edit text files/configs and the like.</p>
<p>Here is a quick reference for more than enough commands to keep you busy. </p>
<p>My favourite &#8216;get out of trouble&#8217; command is the <strong>ESC :wq!</strong> sequence which will quit without saving the changes I have made <img src='http://lookforitoverhere.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   </p>
<p><span id="more-63"></span></p>
<p><code></p>
<table border="0">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="0" width="450" bgcolor="#ffffff">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="20" width="450" bgcolor="#ffffff">
<tbody>
<tr>
<td>
									<font><br />
									<strong>VI commands</strong></font><br />
									<font>VI Reference<br />
									</font></p>
<h1><font>VI Reference</font></h1>
<blockquote></blockquote>
</td>
</tr>
<tr>
<td>
									<font size="1"><br />
									<a href="/#modes">Modes of Operation</a><br />
									<a href="/#entering">Entering and Leaving vi Files</a><br />
									<a href="/#cursor">Basic Cursor Movement</a><br />
									<a href="/#inserting">Inserting Text</a><br />
									<a href="/#deleting">Deleting, Retrieving, and Undoing</a><br />
									<a href="/#changing">Changing, Replacing,and Copying Text</a><br />
									<a href="/#moving">Moving Around in a File</a><br />
									<a href="/#manipulation">File Manipulation</a><br />
									<a href="/#searching">Searching For Text</a><br />
									<a href="/#options">Setting Options</a><br />
									<a href="/#common">Common Option Settings</a><br />
									</font></p>
<hr size="1" />
									<strong><a name="modes" title="modes"></a>Modes of Operation</strong></p>
<p>
									<font size="0"><br />
									vi, the Unix visual editor, has two modes of operation:<br />
									</font>
									</p>
<ol>
										<font size="0"></p>
<li>
										<strong>Command mode</strong>--This is vi&#39;s initial and normal state. In<br />
										this mode, most commands you type are not displayed. Only commands<br />
										preceded by <strong>:</strong>, <strong>/</strong>, or <strong>!</strong><br />
										are displayed on the status line, which also gives feedback about input,<br />
										output, and large changes. Execute these commands with<br />
										<strong></strong> or <strong></strong>. Use<br />
										<strong></strong> to change from text input mode to command<br />
										mode (when in doubt, press <strong></strong>).</p>
<p>
										&nbsp;
										</p>
</li>
<li>
										<strong>Text input (Insert) mode</strong>--This mode is entered by<br />
										pressing <strong>a</strong>, <strong>A</strong>, <strong>i</strong>,<br />
										<strong>I</strong>, <strong>o</strong>, or <strong>O</strong>. Press<br />
										<strong></strong> to end text input mode and return to<br />
										command mode.
										</li>
<p></font>
									</ol>
<p>
									<font size="0">For more information about using vi, see the online help note<br />
									(on Uniform Access Unix computers, enter <strong>help vi</strong>).<br />
									</font>
									</p>
<p>
									<font size="0">The following notations are used in this document (variables<br />
									appear in <em>italics</em>):<br />
									</font>
									</p>
<table border="0" cellpadding="2">
<tbody>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em><br />
												x<br />
												</em></font></td>
<td valign="top"><font size="0"><br />
												represents a single character<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												</strong><em>x</em>   </font></td>
<td valign="top"><font size="0"><br />
												control character: while holding down the<br />
												<strong></strong> key, press <em>x</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em><br />
												text<br />
												</em></font></td>
<td valign="top"><font size="0"><br />
												one or more characters<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em><br />
												n<br />
												</em></font></td>
<td valign="top"><font size="0"><br />
												represents a number<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em><br />
												pat<br />
												</em></font></td>
<td valign="top"><font size="0"><br />
												text and pattern matching characters<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												</strong></font>
												</td>
<td valign="top"><font size="0"><br />
												Return key on your terminal<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												</strong></font>
												</td>
<td valign="top"><font size="0"><br />
												Escape key on your terminal<br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="entering" title="entering"></a>Entering and Leaving vi<br />
												Files</th>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												vi</strong> <em>filename(s)</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												edit a file or files<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												vi -r</strong> <em>filename</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												retrieve saved version of file after system or editor crash<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												vi -x</strong> <em>filename</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												edit encrypted file<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												vi -w</strong><em>n   filename</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												set default window size to <em>n</em> (useful for dial-ups)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:wq<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												save (write) file and exit to system prompt<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												ZZ<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												save file and exit to system prompt<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:q!<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												discard all changes and exit to system prompt<br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="cursor" title="cursor"></a>Basic Cursor Movement</th>
</tr>
<tr>
<td colspan="3"><font size="0">Use <strong>h</strong>, <strong>j</strong>,<br />
												<strong>k</strong>, and <strong>l</strong> to move the cursor--using<br />
												arrow keys may result in undesirable consequences</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												h<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move cursor left one character<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												j<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move cursor down one line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												k<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move cursor up one line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												l<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move cursor right one character<br />
												</font></td>
</tr>
<tr>
<td colspan="3"><font size="0"><br />
												(Any of the above commands preceded by <em>n</em> will move the<br />
												cursor <em>n</em> spaces or lines in the indicated direction.)<br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="inserting" title="inserting"></a>Inserting Text</th>
</tr>
<tr>
<td colspan="3"><font size="0"><br />
												(If <em>n</em> precedes an insert character, <em>n</em> copies of<br />
												inserted text are added upon escape from insertion mode.)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												a<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												begin insert at right of cursor<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												A<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												begin insert at end of line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												i<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												begin insert at left of cursor<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												I<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												insert at beginning of line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												o<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												open line below, ready for insertion<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												O<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												open line above, ready for insertion<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												S<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												replace text with blank line; begin insertion at beginning of that line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												i<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												insert tab<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												v<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												insert non-printing character<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												</strong></font>
												</td>
<td valign="top"><font size="0"><br />
												erase character (invisible until over-typed or insert mode escaped)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												</strong></font>
												</td>
<td valign="top"><font size="0"><br />
												terminate insert mode; also terminates unwanted commands<br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="deleting" title="deleting"></a>Deleting,<br />
												Retrieving, and Undoing</th>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												dw<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												delete word<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												dd<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												delete line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												yw<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												yank word into buffer<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												yy<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												yank line into buffer<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												x<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												delete character<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												D<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												delete characters from cursor to end of line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><br />
												<em>n</em><strong>dw<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												delete <em>n</em> words into buffer<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em>n</em><strong>dd<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												delete <em>n</em> lines into buffer<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em>n</em><strong>yw<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												yank <em>n</em> words into buffer<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em>n</em><strong>yy<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												yank <em>n</em> lines into buffer<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em>n</em><strong>x<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												delete <em>n</em> characters into buffer<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												p<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												put buffer contents after cursor<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												P<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												put buffer contents before cursor<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												u<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												undo last single change<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												U<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												restore current line<br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="changing" title="changing"></a>Changing, Replacing,<br />
												and Copying Text</th>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												.<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												repeat last change<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em>n</em><strong>.<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												repeat last change <em>n</em> times<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												cw</strong><em>text</em></font></td>
<td valign="top"><font size="0"><br />
												mark end of a word with <strong>$</strong> and change to <em>text</em><br />
												(press <strong></strong> to end)</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												r</strong><em>x</em></font></td>
<td valign="top"><font size="0"><br />
												replace character under cursor with character <em>x</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em>n</em><strong>r</strong><em>x</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												replace <em>n</em> characters with character <em>x</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>R</strong><em>text</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												write over existing <em>text</em>, (<strong></strong> to end)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												J<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												join succeeding line to current cursor line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:s</strong><em>/pat1/pat2</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												on the current line, substitute the first occurence of pattern 1 with<br />
												pattern 2 </font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:s</strong><em>/pat1/pat2/</em><strong>g</strong><br />
												</font></td>
<td valign="top"><font size="0"><br />
												on the current line, substitute all occurences of pattern 1 with pattern 2<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:&amp;<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												;repeat the last <strong>:s</strong> request<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:%s</strong><em>/pat1/pat2/</em><strong>g</strong><br />
												</font></td>
<td valign="top"><font size="0"><br />
												substitute all occurences of pattern 1 with pattern 2 throughout the file<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:.,$s</strong><em>/pat1/pat2/</em><strong>g</strong><br />
												</font></td>
<td valign="top"><font size="0"><br />
												substitute all occurences of pattern 1 with pattern 2 from cursor to end<br />
												of file</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="moving" title="moving"></a>Moving Around in a<br />
												File</th>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												g<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												ascertain line number of current line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												G<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												go to end of file<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><em>n</em><strong>G</strong></font></td>
<td valign="top"><font size="0"><br />
												go to line <em>n</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong></strong><br />
												or <strong>+</strong></font></td>
<td valign="top"><font size="0"><br />
												move cursor to beginning of next line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												-<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move to beginning of previous line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>w</strong><br />
												or <em>n</em><strong>w</strong></font></td>
<td valign="top"><font size="0"><br />
												move one word or <em>n</em> words to the right<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>b</strong><br />
												or <em>n</em><strong>b</strong></font></td>
<td valign="top"><font size="0"><br />
												move one word or <em>n</em> words to the left<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												)<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move to next sentence<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												(<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move to previous sentence<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												}<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move to next paragraph<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												{<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												move to previous paragraph<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												d<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												scroll down one-half screen<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												u<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												scroll up one-half screen<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												l<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												clear and redraw the screen<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>m</strong><em>x</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												mark cursor position with character <em>x</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>`</strong><em>x</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												move to position marked with <em>x</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>d`</strong><em>x</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												delete text from marked <em>x</em> to cursor<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>y`</strong><em>x</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												yank text from marked <em>x</em> to cursor<br />
												</font></td>
</tr>
<tr>
<td colspan="3"><font size="0"><br />
												Note: If you precede the mark letter with <strong>&#39;</strong><br />
												(apostrophe) instead of <strong>`</strong> (grave accent), the action will<br />
												apply to the entire line the mark is in, not the exact marked<br />
												location.</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="manipulation" title="manipulation"></a>File<br />
												Manipulation</th>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:r</strong><em>file</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												read in a file beginning on the line below the current line<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:w<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												save and remain in current file<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:wq<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												save file and quit<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:q<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												quit (leave unedited file)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:q!<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												quit and do not save changes<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:!</strong><em>command</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												run single Unix command while editing (press<br />
												<strong></strong> to return to file)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:sh<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												obtain temporary shell (<strong>D</strong> to return to<br />
												file being edited)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:</strong><em>n,m</em><strong>m</strong><em>l</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												move lines numbered <em>n</em> through <em>m</em> after line <em>l</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:</strong><em>n,m</em><strong>t</strong><em>l</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												make a copy of lines numbered <em>n</em> through <em>m</em> and put<br />
												after line <em>l</em></font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:</strong><em>n,m</em><strong>w</strong><em>file</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												write lines numbered <em>n</em> through <em>m</em> to <em>file</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:</strong><em>n,m</em><strong>w&gt;&gt;</strong><em>file</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												append lines numbered <em>n</em> through <em>m</em> to end of <em>file</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:&#39;</strong><em>a</em><strong>,&#39;</strong><em>b</em><strong>w</strong><em>file</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												write block, marked with <em>a</em> and <em>b</em>, to <em>file</em><br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="searching" title="searching"></a>Searching For Text</th>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>/</strong><em>pat</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												go to pattern <em>pat</em> (forward in file from current cursor position)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>?</strong><em>pat</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												go to pattern <em>pat</em> (backward in file from current cursor position)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												n<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												repeat last search, looking in direction of initial search<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												N<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												repeat last search, looking in reverse direction of initial search<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												%<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												find matching <strong>( )</strong> or <strong>{ }</strong> or<br />
												<strong>[ ]</strong> (can be used in combination with<br />
												<strong>/</strong>,<strong>?</strong>,<strong>n</strong>, or<br />
												<strong>N</strong> to search for matching brackets throughout file)<br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="options" title="options"></a>Setting Options</th>
</tr>
<tr>
<td colspan="3"><font size="0"><br />
												Options are either toggled on and off, or given values. When<br />
												editing, set options for a file with the <strong>set</strong> command.<br />
												If you want options to be permanent in a particular directory, create a<br />
												<strong>.exrc</strong> file in that directory and set options in that<br />
												file: <strong>set</strong> <em>option option option=n</em>. (For<br />
												example, <strong>set ai sm sw=4</strong>.) If you want certain option<br />
												settings to apply throughout your Unix environment, edit your<br />
												<strong>.login</strong> file by entering  <strong>setenv<br />
												EXINIT&#39;set</strong> <em>option option option=n&#39;</em> (for example,<br />
												<strong>setenv EXINIT&#39;set ai sw wm=10&#39;</strong>).<br />
												</font></td>
</tr>
<tr>
<td colspan="3"><font size="0"><br />
												The values in a <strong>.exrc</strong> file for a directory will<br />
												override the values of EXINIT in the <strong>.login</strong> file. If no<br />
												<strong>.exrc</strong> file exists, any option values set in the<br />
												<strong>.login</strong> are used. If some option values are set in the<br />
												<strong>.exrc</strong> file and others are set in the<br />
												<strong>.login</strong> file, values from both files are used.<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:set all<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												displays all option settings on your terminal<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												:set<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												displays settings set by <strong>EXINIT</strong>, the<br />
												<strong>.exrc</strong> file, and any current changes<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:set</strong> <em>option</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												sets option<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:set</strong> <em>option=n</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												sets option and assigns it the value of <em>n</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:set no</strong><em>option</em><br />
												</font></td>
<td valign="top"><font size="0"><br />
												unsets option<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong>:set</strong> <em>option</em><strong>?</strong><br />
												</font></td>
<td valign="top"><font size="0"><br />
												displays setting of option on screen status line<br />
												</font></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<th colspan="3" align="left"><a name="common" title="common"></a>Common Option<br />
												Selections</th>
</tr>
<tr>
<td colspan="3"><font size="0"><br />
												(To see a complete list of options, enter <strong>:set all</strong>.)<br />
												</font></td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="2">
<tbody>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												<u>Option Name</u><br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												<u>Default</u><br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												<u>What Option Does</u><br />
												</strong></font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">autoindent (<strong>ai</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												noai<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												provides automatic indentation during text entry<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">autowrite (<strong>aw</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												noaw<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												automatically saves file (write) before searches, control codes, escapes<br />
												to shell<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">ignorecase (<strong>ic</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												noic<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												ignore case during searchs<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												lisp<br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												nolisp<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												modify <strong>)( }{ ][</strong> to be compatible with <em>lisp</em><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												list<br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												nolist<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												show tabs (^<strong>I</strong>) and ends of lines (<strong>$</strong>)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												magic<br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												magic<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												allows metacharacters; with <strong>nomagic</strong>, these only include<br />
												<strong></strong> and <strong>$</strong><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">number (<strong>nu</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												nonu<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												show line numbers<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">readonly (<strong>ro</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												noro<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												make file status read only<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">redraw (<strong>re</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												nore<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												simulate smart terminal on dumb<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												shell<br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												sh=/bin/sh<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												pathname of new shell for <strong>!</strong> and <strong>:sh</strong><br />
												(default from <strong>$SHELL</strong> if present)<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">showmatch (<strong>sm</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												nosm<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												show matching <strong>(</strong> or <strong>{</strong> when<br />
												<strong>)</strong> or <strong>}</strong> is entered<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												term<br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												$TERM<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												name of terminal being used; set by Unix <strong>$TERM</strong><br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0"><strong><br />
												terse<br />
												</strong></font></td>
<td valign="top"><font size="0"><strong><br />
												noterse<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												provide shorter error diagnostics<br />
												</font></td>
</tr>
<tr>
<td width="10">&nbsp;</td>
<td valign="top"><font size="0">wrapmargin (<strong>wm</strong>)<br />
												</font></td>
<td valign="top"><font size="0"><strong><br />
												wm=0<br />
												</strong></font></td>
<td valign="top"><font size="0"><br />
												cause lines to be broken at least <em>n</em> spaces from right edge of<br />
												screen<br />
												</font></td>
</tr>
</tbody>
</table>
<p>
									&nbsp;
									</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://lookforitoverhere.com/63/vi-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

