<br />
<b>Warning</b>:  Illegal offset type in isset or empty in <b>/home/antihostmonster/www.antihostmonster.com/wp-includes/post.php</b> on line <b>828</b><br />
<br />
<b>Warning</b>:  Illegal offset type in isset or empty in <b>/home/antihostmonster/www.antihostmonster.com/wp-includes/post.php</b> on line <b>828</b><br />
<?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>Anti HostMonster &#187; ssh</title>
	<atom:link href="http://www.antihostmonster.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.antihostmonster.com</link>
	<description>Do not fool us</description>
	<lastBuildDate>Mon, 23 Jan 2012 12:42:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQL: Repair &amp; Optimize all Tables in all Databases</title>
		<link>http://www.antihostmonster.com/2011/09/mysql-repair-optimize-tables-databases/</link>
		<comments>http://www.antihostmonster.com/2011/09/mysql-repair-optimize-tables-databases/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 21:16:43 +0000</pubDate>
		<dc:creator>hismis</dc:creator>
				<category><![CDATA[Best Webhosts]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Optimize]]></category>
		<category><![CDATA[Repair]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=264</guid>
		<description><![CDATA[MySQL tables can crash quite easily, especially when your server unexpectedly shuts down or crashed, or when you&#039;re forced to copy data around when it&#039;s still being accessed.
	Luckily, there&#039;s a simple command to automatically check, repair and optimize all tables in all databases when you&#039;re  [...]]]></description>
			<content:encoded><![CDATA[<p><span>MySQL tables can crash quite easily, especially when your server unexpectedly shuts down or crashed, or when you&#039;re forced to copy data around when it&#039;s still being accessed.</span></p>
<p>	<span>Luckily, there&#039;s a simple command to automatically check, repair and optimize all tables in all databases when you&#039;re running a MySQL server on Linux / Unix / BSD.</span></p>
<p></p>
<pre>mysqlcheck <span>-u</span> root <span>-p</span> <span>--auto-repair</span> <span>--check</span> <span>--optimize</span> <span>--all-databases</span></pre>
<p></p>
<p><span>That&#039;s all there is to it!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/09/mysql-repair-optimize-tables-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Webhost</title>
		<link>http://www.antihostmonster.com/2011/09/best-webhost/</link>
		<comments>http://www.antihostmonster.com/2011/09/best-webhost/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 20:46:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Best Webhosts]]></category>
		<category><![CDATA[best shared webhost]]></category>
		<category><![CDATA[Best webhost]]></category>
		<category><![CDATA[cheap]]></category>
		<category><![CDATA[cheap webhost]]></category>
		<category><![CDATA[coupon]]></category>
		<category><![CDATA[Dedicated]]></category>
		<category><![CDATA[discount]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[dreamhost coupon]]></category>
		<category><![CDATA[dreamhost cupon]]></category>
		<category><![CDATA[dreamhost discount]]></category>
		<category><![CDATA[dreamhost promocode]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Hostmonster]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[promotion]]></category>
		<category><![CDATA[promotional code]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shared webhosting]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[webhost]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=55</guid>
		<description><![CDATA[Our Recomended Webhost for the month:
DreamHost
With our promo take 50 USD OFF using promotional code: GIVE50GIFT
That gives you a One Year webhost for only 69.4USD
Please share you opinions if you think otherwise. 
Below is a table comparing popular webhosts and any hidden limtations they have. If  [...]]]></description>
			<content:encoded><![CDATA[<p>Our Recomended Webhost for the month:</p>
<h2><span style="color: #ffcc00;"><a href="http://www.dreamhost.com/r.cgi?249308" target="_blank">DreamHost</a></span></h2>
<h1><span style="font-family: 'trebuchet ms'; font-size: 12px; font-style: normal; line-height: normal; text-transform: none; font-weight: normal; font-variant: normal; color: #090909; word-spacing: 0px; letter-spacing: normal; text-align: left; text-indent: 0px; white-space: normal;">With our promo take 50 USD OFF using promotional code: <strong><span style="color: #ff0000;">GIVE50GIFT</span></strong></span></h1>
<p><strong><span style="border-collapse: separate; color: #eeeeee; font-family: 'trebuchet ms'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="color: #ff0000;">That gives you a One Year webhost for only 69.4USD</span></span></strong></p>
<p><span style="color: #000;">Please share you opinions if you think otherwise. </span></p>
<p><span style="color: #000;">Below is a table comparing popular webhosts and any hidden limtations they have. If you have updates to this please comment.</span></p>
<table border="1" style="width: 564px; height: 479px;" width="564">
<tbody>
<tr>
<td><strong>Feature</strong></td>
<td><strong><a href="http://www.dreamhost.com/r.cgi?249308"><span style="font-size: 14px; color: #3399ff; text-decoration: underline;">Dreamhost</span></a></strong></td>
<td><strong><span style="font-size: 14px; color: #3399ff; text-decoration: underline;">Hostmonster</span></strong></td>
<td><strong><span style="color: #3399ff; text-decoration: underline;">GoDaddy (Delux)</span></strong></td>
</tr>
<tr>
<td><strong>Price/Month</strong></td>
<td>$9.95</td>
<td>$6.95</td>
<td>$6.99</td>
</tr>
<tr>
<td><strong>Price Promo 1yr</strong></td>
<td>$119.4-50=$69.4</td>
<td>Adhoc 5.95$x12=$71.4</td>
<td>$6.64&#215;12=$79.68</td>
</tr>
<tr>
<td><strong>Host Unlmited Domains</strong></td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Hosting Space</strong></td>
<td>Unlimited</td>
<td>&quot;Unlimited&quot; but if high your account will be suspended</td>
<td>150GB</td>
</tr>
<tr>
<td><strong>Bandwidth</strong></td>
<td>Unlimited</td>
<td>Unlimited</td>
<td>1500GB</td>
</tr>
<tr>
<td><strong>SSH Access</strong></td>
<td>By Default</td>
<td>Need to send ID</td>
<td>Can be requested no ID needed</td>
</tr>
<tr>
<td><strong>CPU Limit</strong></td>
<td>No Limitation</td>
<td>60Sec then Site suspended</td>
<td>No Limitation</td>
</tr>
<tr>
<td><strong>Uptime</strong></td>
<td>99.9</td>
<td>99.9</td>
<td>99.9</td>
</tr>
<tr>
<td><strong>MYSQL Databases</strong></td>
<td>Unlimited</td>
<td>100</td>
<td>25</td>
</tr>
<tr>
<td><strong>Email Accounts</strong></td>
<td>Unlimited</td>
<td>Unlimited</td>
<td>Unlimited</td>
</tr>
<tr>
<td><strong>First Yr Domain Registration Free</strong></td>
<td>Yes</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td><strong>Custom Cronjob</strong></td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Tech Support</strong></td>
<td>Chat, Email Ticket system(response time: 1-24hours),Phone: only call back</td>
<td>Phone, Chat, Ticket(Response time 1-24 Hours)</td>
<td>Phone,Ticket(slow 1 Day response time)</td>
</tr>
<tr>
<td><strong>Install Custom PHP</strong></td>
<td><a href="http://sxi.sabrextreme.com/auto-installers">Yes Simple see article here</a></td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td><strong>FFMPEG</strong></td>
<td>Yes</td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td><strong>Max File Upload Size</strong></td>
<td>7MB, unlimited with Custom PHP install</td>
<td>2MB, can be increased with copying php to all folders, still limited with CPU time limit</td>
<td>7MB</td>
</tr>
<tr>
<td><strong>Can host Adult Content</strong></td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Loading speed for a 64kb website size</strong></td>
<td>2-3 Seconds performance is stable since dreamhost upgraded to new servers</td>
<td>2-3 Seconds, performance was stable</td>
<td>5-6 Seconds</td>
</tr>
<tr>
<td><strong>Midnight Commander</strong></td>
<td>Installed by default</td>
<td>Not installed and can not install it</td>
<td>Not sure</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/09/best-webhost/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Webin Configuration</title>
		<link>http://www.antihostmonster.com/2011/07/webin-configuration/</link>
		<comments>http://www.antihostmonster.com/2011/07/webin-configuration/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 01:56:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Webmin]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=227</guid>
		<description><![CDATA[For security it is better to change the port in webmin from 10000 to another number to do this change that in webmin.
Login to webmin
Under Webmin&#62;Webmin Configuration&#62;Ports and Addresses
Under Listen on port: choose a 5 digit number.
&#160;
Then in ssh root
you need to allow the new port
&#160;
with the  [...]]]></description>
			<content:encoded><![CDATA[<p>For security it is better to change the port in webmin from 10000 to another number to do this change that in webmin.</p>
<p>Login to webmin</p>
<p>Under Webmin&gt;Webmin Configuration&gt;Ports and Addresses</p>
<p>Under Listen on port: choose a 5 digit number.</p>
<p>&nbsp;</p>
<p>Then in ssh root</p>
<p>you need to allow the new port</p>
<p>&nbsp;</p>
<p>with the command:</p>
<p>system-config-securitylevel-tui</p>
<p>&nbsp;</p>
<p>Use tab to get to Customize then add your port.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/07/webin-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic vi Commands</title>
		<link>http://www.antihostmonster.com/2011/07/basic-vi-commands/</link>
		<comments>http://www.antihostmonster.com/2011/07/basic-vi-commands/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 02:26:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SSH Commands]]></category>
		<category><![CDATA[avoid]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[vi editor]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=219</guid>
		<description><![CDATA[




Basic vi Commands






What is vi?

The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.] 
The UNIX vi editor is a full screen editor and has two modes of  [...]]]></description>
			<content:encoded><![CDATA[<table width="98%">
<tbody>
<tr>
<td align="LEFT"></td>
<td align="RIGHT">
<h1 align="RIGHT"><span style="color: navy;">Basic vi Commands</span></h1>
</td>
</tr>
</tbody>
</table>
<hr noshade="noshade" />
<hr noshade="noshade" />
<h3>What is <tt>vi</tt>?</h3>
<dl>
<dd>The default editor that comes with the UNIX operating system is called <tt>vi</tt> (<strong>vi</strong>sual editor). [Alternate editors for UNIX environments include <tt>pico</tt> and <tt>emacs</tt>, a product of GNU.] </dd>
<dd>The UNIX <tt>vi</tt> editor is a full screen editor and has two modes of operation:</p>
<ol>
<li><em>Command mode</em> commands which cause action to be taken on the file, and</li>
<li><em>Insert mode</em> in which entered text is inserted into the file.</li>
</ol>
<p>In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the command mode may even cause the <tt>vi</tt> editor to enter the insert mode. In the insert mode, every character typed is added to the text in the file; pressing the <tt>&lt;Esc&gt;</tt> (<em>Escape</em>) key turns off the Insert mode.</p>
</dd>
<dd>While there are a number of <tt>vi</tt> commands, just a handful of these is usually sufficient for beginning <tt>vi</tt> users. To assist such users, this Web page contains a sampling of basic <tt>vi</tt> commands. The most basic and useful commands are marked with an asterisk (<tt>*</tt> or star) in the tables below. With practice, these commands should become automatic. </dd>
<dd><strong>NOTE:</strong> Both UNIX and <tt>vi</tt> are <strong>case-sensitive</strong>. Be sure not to use a capital letter in place of a lowercase letter; the results will not be what you expect.</dd>
</dl>
<p>&nbsp;</p>
<hr noshade="noshade" />
<p>&nbsp;</p>
<h3>To Get Into and Out Of <tt>vi</tt></h3>
<p>&nbsp;</p>
<h4>To Start <tt>vi</tt></h4>
<p>&nbsp;</p>
<dl>
<dd>To use <tt>vi</tt> on a file, type in <tt>vi filename</tt>. If the file named <tt>filename</tt> exists, then the first page (or screen) of the file will be displayed; if the file does not exist, then an empty file and screen are created into which you may enter text.</dd>
</dl>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th>*</th>
<th align="LEFT"><tt>vi filename</tt></th>
<td><em>edit <tt>filename</tt> starting at line 1</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>vi -r filename</tt></th>
<td><em>recover <tt>filename</tt> that was being edited when system crashed</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h4>To Exit <tt>vi</tt></h4>
<p>&nbsp;</p>
<dl>
<dd>Usually the new or modified file is saved when you leave <tt>vi</tt>. However, it is also possible to quit <tt>vi</tt> without saving the file. </dd>
<dd><strong>Note:</strong> The cursor moves to bottom of screen whenever a colon (<tt>:</tt>) is typed. This type of command is completed by hitting the <tt>&lt;Return&gt;</tt> (or <tt>&lt;Enter&gt;</tt>) key.</dd>
</dl>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th>*</th>
<th align="LEFT"><tt>: x</tt><tt>&lt;Return&gt;</tt></th>
<td><em>quit <tt>vi</tt>, writing out modified file to file named in original invocation</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>:wq</tt><tt>&lt;Return&gt;</tt></th>
<td><em>quit <tt>vi</tt>, writing out modified file to file named in original invocation</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>:q</tt><tt>&lt;Return&gt;</tt></th>
<td><em>quit (or exit) <tt>vi</tt></em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT"><tt>:q!</tt><tt>&lt;Return&gt;</tt></th>
<td><em>quit <tt>vi</tt> even though latest changes have not been saved for this <tt>vi</tt> call</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr noshade="noshade" />
<p>&nbsp;</p>
<h3>Moving the Cursor</h3>
<p>&nbsp;</p>
<dl>
<dd>Unlike many of the PC and MacIntosh editors, <strong>the mouse does not move the cursor</strong> within the <tt>vi</tt> editor screen (or window). You must use the the key commands listed below. On some UNIX platforms, the arrow keys may be used as well; however, since <tt>vi</tt> was designed with the Qwerty keyboard (containing no arrow keys) in mind, the arrow keys sometimes produce strange effects in <tt>vi</tt> and should be avoided. </dd>
<dd>If you go back and forth between a PC environment and a UNIX environment, you may find that this dissimilarity in methods for cursor movement is the most frustrating difference between the two. </dd>
<dd>In the table below, the symbol <tt>^</tt> before a letter means that the <tt>&lt;Ctrl&gt;</tt> key should be held down while the letter key is pressed.</dd>
</dl>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th>*</th>
<th align="LEFT"><tt>j</tt> <em>or</em> <tt>&lt;Return&gt;</tt><br />
[<em>or</em> down-arrow]</th>
<td><em>move cursor down one line</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT"><tt>k</tt> [<em>or</em> up-arrow]</th>
<td><em>move cursor up one line</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT"><tt>h</tt> <em>or</em> <tt>&lt;Backspace&gt;</tt><br />
[<em>or</em> left-arrow]</th>
<td><em>move cursor left one character</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT"><tt>l</tt> <em>or</em> <tt>&lt;Space&gt;</tt><br />
[<em>or</em> right-arrow]</th>
<td><em>move cursor right one character</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>0</tt> (zero)</th>
<td><em>move cursor to start of current line (the one with the cursor)</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>$</tt></th>
<td><em>move cursor to end of current line</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>w</tt></th>
<td><em>move cursor to beginning of next word</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>b</tt></th>
<td><em>move cursor back to beginning of preceding word</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>:0</tt><tt>&lt;Return&gt; <em>or</em> 1G</tt></th>
<td><em>move cursor to first line in file</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>:n</tt><tt>&lt;Return&gt; <em>or</em> nG</tt></th>
<td><em>move cursor to line <tt>n</tt></em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>:$</tt><tt>&lt;Return&gt; <em>or</em> G</tt></th>
<td><em>move cursor to last line in file</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr noshade="noshade" />
<p>&nbsp;</p>
<h3>Screen Manipulation</h3>
<p>&nbsp;</p>
<dl>
<dd>The following commands allow the <tt>vi</tt> editor screen (or window) to move up or down several lines and to be refreshed.</dd>
</dl>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>^f</tt></th>
<td><em>move forward one screen</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>^b</tt></th>
<td><em>move backward one screen</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>^d</tt></th>
<td><em>move down (forward) one half screen</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>^u</tt></th>
<td><em>move up (back) one half screen</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>^l</tt></th>
<td><em>redraws the screen</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>^r</tt></th>
<td><em>redraws the screen, removing deleted lines</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr noshade="noshade" />
<p>&nbsp;</p>
<h3>Adding, Changing, and Deleting Text</h3>
<p>&nbsp;</p>
<dl>
<dd>Unlike PC editors, you cannot replace or delete text by highlighting it with the mouse. Instead use the commands in the following tables. </dd>
<dd>Perhaps the most important command is the one that allows you to back up and <em>undo</em> your last action. Unfortunately, this command acts like a toggle, undoing and redoing your most recent action. You cannot go back more than one step.</dd>
</dl>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>u</tt></th>
<td><em>UNDO WHATEVER YOU JUST DID; a simple toggle</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<dl>
<dd>The main purpose of an editor is to create, add, or modify text for a file. </dd>
</dl>
<h4>Inserting or Adding Text</h4>
<p>&nbsp;</p>
<dl>
<dd>The following commands allow you to insert and add text. Each of these commands puts the <tt>vi</tt> editor into insert mode; thus, the <tt>&lt;Esc&gt;</tt> key must be pressed to terminate the entry of text and to put the <tt>vi</tt> editor back into command mode. </dd>
</dl>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>i</tt></th>
<td><em>insert text before cursor, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>I</tt></th>
<td><em>insert text at beginning of current line, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>a</tt></th>
<td><em>append text after cursor, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>A</tt></th>
<td><em>append text to end of current line, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>o</tt></th>
<td><em>open and put text in a new line below current line, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>O</tt></th>
<td><em>open and put text in a new line above current line, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h4>Changing Text</h4>
<p>&nbsp;</p>
<dl>
<dd>The following commands allow you to modify text. </dd>
</dl>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>r</tt></th>
<td><em>replace single character under cursor (no <tt>&lt;Esc&gt;</tt> needed)</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>R</tt></th>
<td><em>replace characters, starting with current cursor position, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>cw</tt></th>
<td><em>change the current word with new text,<br />
starting with the character under cursor, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>cNw</tt></th>
<td><em>change <tt>N</tt> words beginning with character under cursor, until <tt>&lt;Esc&gt;</tt> hit;<br />
e.g., <tt>c5w</tt> changes 5 words</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>C</tt></th>
<td><em>change (replace) the characters in the current line, until <tt>&lt;Esc&gt;</tt> hit</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>cc</tt></th>
<td><em>change (replace) the entire current line, stopping when <tt>&lt;Esc&gt;</tt> is hit</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>Ncc</tt> <em>or</em> <tt>cNc</tt></th>
<td><em>change (replace) the next N lines, starting with the current line,<br />
stopping when <tt>&lt;Esc&gt;</tt> is hit</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h4>Deleting Text</h4>
<p>&nbsp;</p>
<dl>
<dd>The following commands allow you to delete text. </dd>
</dl>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>x</tt></th>
<td><em>delete single character under cursor</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>Nx</tt></th>
<td><em>delete N characters, starting with character under cursor</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>dw</tt></th>
<td><em>delete the single word beginning with character under cursor</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>dNw</tt></th>
<td><em>delete <tt>N</tt> words beginning with character under cursor;<br />
e.g., <tt>d5w</tt> deletes 5 words</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>D</tt></th>
<td><em>delete the remainder of the line, starting with current cursor position</em></td>
</tr>
<tr>
<th>*</th>
<th align="LEFT" nowrap="nowrap"><tt>dd</tt></th>
<td><em>delete entire current line</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>Ndd</tt> <em>or</em> <tt>dNd</tt></th>
<td><em>delete <tt>N</tt> lines, beginning with the current line;<br />
e.g., <tt>5dd</tt> deletes 5 lines</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h4>Cutting and Pasting Text</h4>
<p>&nbsp;</p>
<dl>
<dd>The following commands allow you to copy and paste text. </dd>
</dl>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>yy</tt></th>
<td><em>copy (yank, cut) the current line into the buffer</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>Nyy</tt> <em>or</em> <tt>yNy</tt></th>
<td><em>copy (yank, cut) the next N lines, including the current line, into the buffer</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>p</tt></th>
<td><em>put (paste) the line(s) in the buffer into the text after the current line</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr noshade="noshade" />
<p>&nbsp;</p>
<h3>Other Commands</h3>
<p>&nbsp;</p>
<h4>Searching Text</h4>
<p>&nbsp;</p>
<dl>
<dd>A common occurrence in text editing is to replace one word or phase by another. To locate instances of particular sets of characters (or strings), use the following commands. </dd>
</dl>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th></th>
<th align="LEFT"><tt>/string</tt></th>
<td><em>search forward for occurrence of <tt>string</tt> in text<em></em></em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>?string</tt></th>
<td><em>search backward for occurrence of <tt>string</tt> in text<em></em></em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>n</tt></th>
<td><em>move to next occurrence of search string</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>N</tt></th>
<td><em>move to next occurrence of search string in opposite direction</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h4>Determining Line Numbers</h4>
<p>&nbsp;</p>
<dl>
<dd>Being able to determine the line number of the current line or the total number of lines in the file being edited is sometimes useful. </dd>
</dl>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th></th>
<th align="LEFT"><tt>:.=</tt></th>
<td><em>returns line number of current line at bottom of screen<em></em></em></td>
</tr>
<tr>
<th></th>
<th align="LEFT"><tt>:=</tt></th>
<td><em>returns the total number of lines at bottom of screen<em></em></em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>^g</tt></th>
<td><em>provides the current line number, along with the total number of lines,<br />
in the file at the bottom of the screen</em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr noshade="noshade" />
<p>&nbsp;</p>
<h3>Saving and Reading Files</h3>
<p>These commands permit you to input and output files other than the named file with which you are currently working.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table border="">
<tbody>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>:r filename</tt><tt>&lt;Return&gt;</tt></th>
<td><em>read file named <tt>filename</tt> and insert after current line<br />
(the line with cursor)</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>:w</tt><tt>&lt;Return&gt;</tt></th>
<td><em>write current contents to file named in original <tt>vi</tt> call</em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>:w newfile</tt><tt>&lt;Return&gt;</tt></th>
<td><em>write current contents to a new file named <tt>newfile</tt></em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>:12,35w smallfile</tt><tt>&lt;Return&gt;</tt></th>
<td><em>write the contents of the lines numbered 12 through 35 to a new file named <tt>smallfile</tt></em></td>
</tr>
<tr>
<th></th>
<th align="LEFT" nowrap="nowrap"><tt>:w! prevfile</tt><tt>&lt;Return&gt;</tt></th>
<td><em>write current contents over a pre-existing file named <tt>prevfile</tt></em></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<hr noshade="noshade" />
<hr noshade="noshade" />
<p><span style="font-size: xx-small;"><strong>Source cs.colostate.edu</strong></span></p>
<hr noshade="noshade" />
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/07/basic-vi-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Vi editor commands</title>
		<link>http://www.antihostmonster.com/2011/06/ssh-vi-editor-commants/</link>
		<comments>http://www.antihostmonster.com/2011/06/ssh-vi-editor-commants/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 22:28:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SSH Commands]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vi editor]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=214</guid>
		<description><![CDATA[To exit&#8230;
vi &#8211; press escape to get into command mode if you re not already in command mode (if you are, it s OK to press it anyway). :q to quit :w to save, :wq to do both.
emacs &#8211; ^X^S to save, ^X^C to quit
]]></description>
			<content:encoded><![CDATA[<p>To exit&#8230;</p>
<p>vi &#8211; press escape to get into command mode if you re not already in command mode (if you are, it s OK to press it anyway). :q to quit :w to save, :wq to do both.</p>
<p>emacs &#8211; ^X^S to save, ^X^C to quit</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/06/ssh-vi-editor-commants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading PHP version on Centos from 2.5.10 to</title>
		<link>http://www.antihostmonster.com/2011/06/upgrading-php-version-centos-2-5-10/</link>
		<comments>http://www.antihostmonster.com/2011/06/upgrading-php-version-centos-2-5-10/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 05:24:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[SSH Commands]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=209</guid>
		<description><![CDATA[FIREWALL[root@CentOS-56-64-minimal ~]# system-config-securitylevel-tui
WEBMIN&#62;SYSTEM&#62; SOFTWARE PACKAGES search for php
&#160;
Solution in Centos 5 and Fedora 9:
Through SSH:
yum search mbstring
yum install php-mbstring
/etc/init.d/httpd restart
INCREASE MYSQL MEMORY
vi /etc/my.cnf
]]></description>
			<content:encoded><![CDATA[<p>FIREWALL[root@CentOS-56-64-minimal ~]# system-config-securitylevel-tui<br />
WEBMIN&gt;SYSTEM&gt; SOFTWARE PACKAGES search for php</p>
<p>&nbsp;</p>
<p>Solution in Centos 5 and Fedora 9:</p>
<p><strong>Through SSH:</strong><br />
<code>yum search mbstring</code></p>
<p><code>yum install php-mbstring</code></p>
<p><code>/etc/init.d/httpd restart</code></p>
<p>INCREASE MYSQL MEMORY</p>
<p>vi /etc/my.cnf</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/06/upgrading-php-version-centos-2-5-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH how to empty a text file?</title>
		<link>http://www.antihostmonster.com/2011/06/ssh-empty-text-file/</link>
		<comments>http://www.antihostmonster.com/2011/06/ssh-empty-text-file/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 06:59:54 +0000</pubDate>
		<dc:creator>hismis</dc:creator>
				<category><![CDATA[SSH Commands]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=193</guid>
		<description><![CDATA[just copy /dev/null to that file. eg: cp /dev/null &#60;filename&#62;
]]></description>
			<content:encoded><![CDATA[<p>just copy /dev/null to that file. eg: cp /dev/null &lt;filename&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/06/ssh-empty-text-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exclude a directory to tar</title>
		<link>http://www.antihostmonster.com/2011/03/exclude-a-directory-to-tar/</link>
		<comments>http://www.antihostmonster.com/2011/03/exclude-a-directory-to-tar/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 23:01:08 +0000</pubDate>
		<dc:creator>hismis</dc:creator>
				<category><![CDATA[SSH Commands]]></category>
		<category><![CDATA[exclude]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=182</guid>
		<description><![CDATA[Here is an example how to backup your site, and a exclude a directory :
tar -cf backup.tar &#8211;exclude={/home/yoursite/public_html/wp-content/uploads/*} /home/yoursite/public_html/
&#160;
backup.tar : Backup file name.
To exclude more than one directory  :  [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an example how to backup your site, and a exclude a directory :</p>
<p>tar -cf backup.tar &#8211;<em>exclude</em>={/home/yoursite/public_html/wp-content/uploads/*} /home/yoursite/public_html/</p>
<p>&nbsp;</p>
<p>backup.tar : Backup file name.</p>
<p>To exclude more than one directory  :  &#8211; exclude={”/proc/*”,”/sys*”,”/tmp/*”,”/home/user/*”}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2011/03/exclude-a-directory-to-tar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase UPLOAD MAX FILE SIZE for DREAMHOST?</title>
		<link>http://www.antihostmonster.com/2010/10/how-to-increase-upload-max-file-size-for-dreamhost/</link>
		<comments>http://www.antihostmonster.com/2010/10/how-to-increase-upload-max-file-size-for-dreamhost/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 00:40:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[SSH Commands]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[custom php.ini dreamhost]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=156</guid>
		<description><![CDATA[This article is a slightly modified article from a great blog post at www.bluesunray.com about how to have our own php.ini with dreamhost.Thank you for your work:
0-Set up your domain for FastCGI (usually it is the case by default)
Login your Dreamhost, enter Manage Domains, Edit your domain setup,  [...]]]></description>
			<content:encoded><![CDATA[<p>This article is a slightly modified article from a great blog post at www.bluesunray.com about how to have our own php.ini with dreamhost.Thank you for your work:<br />
0-Set up your domain for FastCGI (usually it is the case by default)<br />
Login your Dreamhost, enter <strong>Manage Domains</strong>, Edit your domain setup, in Web Options-&gt;PHP mode, select ‘PHP 5 FastCGI’</p>
<ol>
<li>Download <a title="Get the Dreamhost Custom PHP.ini" href="http://sxi.sabrextreme.com/get_dh-phpini" target="_blank">DreamHost Custom PHP.ini</a> from <a title="DreamHost Scripts and Tips" href="http://sxi.sabrextreme.com/" target="_blank">DeamHost Scripts and Tips</a>. Or attached here as of today <a href="http://www.antihostmonster.com/wp-content/uploads/2010/10/dh-phpini-1.zip">dh-phpini </a></li>
<li>Extract the <strong>dh-phpini.php</strong> from <strong>dh-phpini.zip</strong> and upload it to you website root.</li>
<li>Open <strong>dh-phpini.php</strong> in you browse. Example: http://www.yoursite.com/dh-phpini.php.</li>
<li>Then, this result shows,</li>
<li><a href="http://www.antihostmonster.com/wp-content/uploads/2010/10/complete.png"><img class="aligncenter size-full wp-image-157" title="complete" src="http://www.antihostmonster.com/wp-content/uploads/2010/10/complete.png" alt="" width="405" height="189" /></a>After install, this script create ‘cgi-bin’ folder in you website root, including ‘php.ini’ files in the folder, and add this lines in you .htaccess file, if they are not there already:</li>
</ol>
<p>AddHandler fastcgi-script fcg fcgi fpl<br />
AddHandler php-fastcgi .php<br />
Action php-fastcgi /cgi-bin/dispatch.fcgi</p>
<p>6. Default, the Max upload file size increase to 20M, if you want to change to more, edit <strong>php.ini</strong> file in ‘cgi-bin’ folder like this,</p>
<p>post_max_size = 50M</p>
<p>upload_max_filesize = 50M</p>
<p>7.For changes to the new php.ini file to take effect , you’ll probably need to restart FastCGI for them to take effect.</p>
<p>Unfortunately you can’t do this from the Dreamhost Control Panel. You need to log in via SSH, and issue the command “killall -9 php5.cgi” to restart FastCGI.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2010/10/how-to-increase-upload-max-file-size-for-dreamhost/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Commands using iconv to fix website Characters</title>
		<link>http://www.antihostmonster.com/2009/06/commands-using-iconv/</link>
		<comments>http://www.antihostmonster.com/2009/06/commands-using-iconv/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 03:49:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Best Webhosts]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=101</guid>
		<description><![CDATA[
Here are some useful SSH commands to fix special characters on your website.
Sometimes you would see ? or strange charsets&#8230;
Recommended to use UTF-8 and have your database collation also as utf-8 
Convert a bunch of HTML files from ISO-8859-1 to UTF-8 file encoding in a folder and all  [...]]]></description>
			<content:encoded><![CDATA[<div class="line" title="Click to select this command">
<div class="command">Here are some useful SSH commands to fix special characters on your website.</div>
<div class="command">Sometimes you would see ? or strange charsets&#8230;</div>
<div class="command">Recommended to use UTF-8 and have your database collation also as utf-8<strong> </strong></div>
<div class="command"><strong>Convert a bunch of HTML files from ISO-8859-1 to UTF-8 file encoding in a folder and all sub-folders</strong></div>
<div class="command">for x in `find . -name &#8216;*.html&#8217;` ; do iconv -f ISO-8859-1 -t UTF-8 $x &gt; &#8220;$x.utf8&#8243;; rm $x; mv &#8220;$x.utf8&#8243; $x; done</div>
<div class="command"><strong>Convert mysql database from latin1 to utf8</strong></div>
<div class="command"><strong> </strong>mysqldump &#8211;add-drop-table -uroot -p &#8220;DB_name&#8221; | replace CHARSET=latin1 CHARSET=utf8 | iconv -f latin1 -t utf8 | mysql -uroot -p &#8220;DB_name&#8221;</div>
<div class="command">
<div class="line" title="Click to select this command">
<div class="command">find . -name &#8220;*.php&#8221; -exec iconv -f ISO-8859-1 -t UTF-8 {} -o ../newdir_utf8/{} \;</div>
<div class="command"><strong>Batch convert files to utf-8</strong></div>
<div class="command"><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: 'times new roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: verdana; font-size: 13px; color: #ffffff;">iconv -f ISO8859-1 -t UTF-8 OLDFILE &gt; NEWFILE<br style="margin: 0px;" /><br style="margin: 0px;" />For example in ssh type:<br style="margin: 0px;" />iconv -f ISO8859-1 -t UTF-8 listing_default.tpl &gt;listing_default2.tpl<br style="margin: 0px;" /><br style="margin: 0px;" />Then rename or delete your old listing_default.tpl and rename listing_default2.tpl to listing_default.tpl</span></span></div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2009/06/commands-using-iconv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

