<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; webhost</title>
	<atom:link href="http://www.antihostmonster.com/tag/webhost/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>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>Things to help when migrating from one server to another</title>
		<link>http://www.antihostmonster.com/2009/03/things-to-help-when-migrating-from-one-server-to-another/</link>
		<comments>http://www.antihostmonster.com/2009/03/things-to-help-when-migrating-from-one-server-to-another/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 04:50:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SSH Commands]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[webhost]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.antihostmonster.com/?p=26</guid>
		<description><![CDATA[Good thing to have ssh access set up for both webhosts.
An easy way of migrating the databases especially when it is a big database and it size is over what you have in PhpMyAdmin setup:
Login to the new server with ssh and type:
mysqldump -h oldhost -u oldusername -poldpassword olddbname &#124; mysql  [...]]]></description>
			<content:encoded><![CDATA[<p>Good thing to have ssh access set up for both webhosts.</p>
<p>An easy way of migrating the databases especially when it is a big database and it size is over what you have in PhpMyAdmin setup:<br />
Login to the new server with ssh and type:<br />
<span style="color: #009900;">mysqldump -h oldhost -u oldusername -poldpassword olddbname | mysql -h newhost -u newusername -pnewpassword newdbname</span></p>
<p>Note: if this did not work check your passwords or check if your new server is white listed (remote mysql access) on the old server.</p>
<p>Below is a list of common SSH commands that can be very useful I will be updating this as I suffer through my hosting (Article provided by WebHostGear.com):</p>
<p><strong>Common SSH Commands or Linux Shell Commands,</strong><br />
<span style="color: #ffff00;"><strong style="color: #009900;">ls </strong></span>: list files/directories in a directory, comparable to dir in windows/dos.<br />
<span style="color: #ffff00;"><em style="color: #009900;">ls -al</em></span> : shows all files (including ones that start with a period), directories, and details attributes for each file.</p>
<p><span style="color: #009900;">ls -alF</span>: shows all files and its owners</p>
<p><span style="color: #ffff00;"><strong style="color: #009900;">cd </strong></span>: change directory · · cd /usr/local/apache : go to /usr/local/apache/ directory<br />
<em><span style="color: #009900;">cd ~</span> </em>: go to your home directory<br />
<span style="color: #ffff00;"><em style="color: #009900;">cd -</em> </span>: go to the last directory you were in<br />
<span style="color: #ffff00;"><em style="color: #009900;">cd .. </em></span>: go up a directory cat : print file contents to the screen</p>
<p><span style="color: #ffff00;"><em style="color: #009900;">cat filename.txt </em></span>: cat the contents of filename.txt to your screen</p>
<p><strong><span style="color: #009900;">chmod</span>:</strong> changes file access permissions<br />
The set of 3 go in this order from left to right:<br />
USER &#8211; GROUP &#8211; EVERONE<br />
<!-- COPYRIGHT MIDDLE ART --></p>
<p><noscript></noscript><br />
1 = &#8211;X  Execute only<br />
2 = -W-  Write only<br />
3 = -WX  Write and execute<br />
4 = R&#8211;  Read only<br />
5 = R-X  Read and execute<br />
6 = RW-  Read and write<br />
7 = RWX  Read, write and execute</p>
<p>Usage:<br />
chmod numberpermissions filename</p>
<p><span class="green">chmod 000</span> : No one can access<br />
<span class="green">chmod 644</span>: Usually for HTML pages<br />
<span class="green">chmod 755</span>: Usually for CGI scripts</p>
<p><span style="color: #ffff00;"><strong>chown</strong></span>: changes file ownership permissions<br />
The set of 2 go in this order from left to right:<br />
USER &#8211; GROUP</p>
<p style="color: #009900;"><span style="color: #ffff00;"><span class="green" style="color: #009900;">chown root myfile.txt</span></span> : Changes the owner of the file to root<br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">chown root.root myfile.txt</span></span> : Changes the owner and group of the file to root</p>
<p><span style="color: #009900;">chown -Rf Username Foldername </span>: Changes the owner of a directory and all files in it</p>
<p><span style="color: #ffff00;"><strong style="color: #009900;">tail</strong></span> : like cat, but only reads the end of the file<br />
<em style="color: #009900;"><span style="color: #009900;">tail /var/log/messages</span> </em>: see the last 20 (by default) lines of /var/log/messages<br />
<span style="color: #ffff00;"><em style="color: #009900;">tail -f /var/log/messages </em></span>: watch the file continuously, while it&#8217;s being updated<br />
<span style="color: #ffff00;"><em style="color: #009900;">tail -200 /var/log/messages </em></span>: print the last 200 lines of the file to the screen</p>
<p><span style="color: #ffff00;"><strong style="color: #009900;">more</strong><em> </em></span>: like cat, but opens the file one screen at a time rather than all at once<br />
<em style="color: #009900;"><span style="color: #009900;">more /etc/userdomains</span> </em>: browse through the userdomains file. hit <em>Space</em>to go to the next page, <em>q</em> to quit</p>
<p style="color: #009900;"><span style="color: #ffff00;"><strong>pico</strong></span> : friendly, easy to use file editor<br />
<span style="color: #ffff00;"><em style="color: #009900;">pico /home/burst/public_html/index.html </em></span>: edit the index page for the user&#8217;s website.</p>
<p><strong>File Editing with VI ssh commands</strong><br />
<span style="color: #ffff00;"><strong style="color: #009900;">vi</strong> </span>: another editor, tons of features, harder to use at first than pico<br />
<em><span style="color: #009900;">vi /home/burst/public_html/index.html</span> </em>: edit the index page for the user&#8217;s website.<br />
When in the vi program you can use the following useful commands, you will need to hit SHIFT + : to go into command mode</p>
<p><span class="green">:q! </span>: This force quits the file without saving and exits vi<br />
<span class="green">:w</span> : This writes the file to disk, saves it<br />
<span class="green">:wq</span> : This saves the file to disk and exists vi<br />
<span class="green">:LINENUMBER</span> : EG :25 : Takes you to line 25 within the file<br />
<span class="green">:$ </span>: Takes you to the last line of the file<br />
<span class="green">:0</span> : Takes you to the first line of the file</p>
<p><span style="color: #ffff00;"><strong style="color: #009900;">grep</strong></span> : looks for patterns in files<br />
<span style="color: #ffff00;"><em style="color: #009900;">grep root /etc/passwd </em></span>: shows all matches of root in /etc/passwd<br />
<em><span style="color: #009900;">grep -v root /etc/passwd</span> </em>: shows all lines that do not match root</p>
<p><span style="color: #ffff00;"><strong style="color: #009900;">ln</strong></span> : create&#8217;s &#8220;links&#8221; between files and directories<br />
<em>ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf </em>: Now you can edit /etc/httpd.conf rather than the original. changes will affect the orginal, however you can delete the link and it will not delete the original.</p>
<p><span style="color: #009900;"><strong>last</strong> </span>: shows who logged in and when<br />
<em style="color: #009900;"><span style="color: #ffff00;">last -20</span> </em>: shows only the last 20 logins<br />
<em style="color: #009900;"><span style="color: #ffff00;">last -20 -a</span> </em>: shows last 20 logins, with the hostname in the last field</p>
<p><span style="color: #ffff00;"><strong>w</strong></span> : shows who is currently logged in and where they are logged in from.<br />
<span style="color: #ffff00;"><span class="green">who</span></span> : This also shows who is on the server in an shell.</p>
<p><span style="color: #009900;"><strong>netstat</strong> </span>: shows all current network connections.<br />
<span style="color: #ffff00;"><em style="color: #009900;">netstat -an </em>:</span> shows all connections to the server, the source and destination ips and ports.<br />
<span style="color: #ffff00;"><em style="color: #009900;">netstat -rn </em></span>: shows routing table for all ips bound to the server.</p>
<p><span style="color: #ffff00;"><strong style="color: #009900;">top</strong></span> : shows live system processes in a nice table, memory information, uptime and other useful info. This is excellent for managing your system processes, resources and ensure everything is working fine and your server isn&#8217;t bogged down.<br />
<em>top</em> then type <em>Shift + M</em> to sort by memory usage or <em>Shift + P </em>to sort by CPU usage</p>
<p><strong><span style="color: #ffff00;">ps</span>: </strong>ps is short for process status, which is similar to the <em>top</em> command. It&#8217;s used to show currently running processes and their PID.<br />
A process ID is a unique number that identifies a process, with that you can kill or terminate a running program on your server (see kill command).<br />
<span style="color: #ffff00;"><em style="color: #009900;">ps U username</em> </span><em>:</em> shows processes for a certain user<br />
<span style="color: #ffff00;"><em>ps aux</em></span> : shows all system processes<br />
<span style="color: #ffff00;"><em>ps aux &#8211;forest</em> </span>: shows all system processes like the above but organizes in a hierarchy that&#8217;s very useful!</p>
<p><span style="color: #ffff00;"><strong>touch</strong></span> : create an empty file<br />
<em>touch /home/burst/public_html/404.html </em>: create an empty file called 404.html in the directory /home/burst/public_html/</p>
<p><span style="color: #ffff00;"><strong>file </strong></span>: attempts to guess what type of file a file is by looking at it&#8217;s content.<br />
<em><span style="color: #ffff00;">file *</span> </em>: prints out a list of all files/directories in a directory</p>
<p><strong><span style="color: #ffff00;">du</span> </strong>: shows disk usage.<br />
<em><span style="color: #ffff00;">du -sh</span> </em>: shows a summary, in human-readble form, of total disk space used in the current directory, including subdirectories.<br />
<em><span style="color: #ffff00;">du -sh *</span> </em>: same thing, but for each file and directory. helpful when finding large files taking up space.</p>
<p><strong><span style="color: #ffff00;">wc </span>: </strong>word count<br />
<em><span style="color: #ffff00;">wc -l filename.txt</span> </em>: tells how many lines are in filename.txt</p>
<p><strong><span style="color: #ffff00;">cp</span> </strong>: copy a file<br />
<span style="color: #ffff00;"><em>cp filename filename.backup </em></span>: copies filename to filename.backup<br />
<em><strong><span style="color: #ffff00;">cp -a /home/burst/new_design/* /home/burst/public_html/</span></strong> </em>: copies all files, retaining permissions form one directory to another.<br />
<span style="color: #ffff00;"><span class="green">cp -av * ../newdir</span></span> : Copies all files and directories recurrsively in the current directory INTO newdir</p>
<p><span style="color: #ffff00;"><strong>mv</strong></span> : Move a file command<br />
<span style="color: #ffff00;"><span class="green">mv oldfilename newfilename </span></span>: Move a file or directory from oldfilename to newfilename</p>
<p style="color: #009900;"><strong><span style="color: #ffff00;">rm</span> </strong>: delete a file<br />
<em><span style="color: #ffff00;">rm filename.txt</span> </em>: deletes filename.txt, will more than likely ask if you really want to delete it<br />
<em><span style="color: #ffff00;">rm -f filename.txt</span> </em>: deletes filename.txt, will not ask for confirmation before deleting.<br />
<span style="color: #ffff00;"><em>rm -rf tmp/</em> :</span> recursively deletes the directory tmp, and all files in it, including subdirectories. BE VERY CAREFULL WITH THIS COMMAND!!!<br />
<strong><br />
<span style="color: #009900;">TAR</span></strong>: Creating and Extracting .tar.gz and .tar files<br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">tar -zxvf file.tar.gz</span> :</span> Extracts the file<br />
<span style="color: #ffff00;"><span class="green">tar -xvf file.tar</span></span> : Extracts the file<br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">tar -cf archive.tar contents/</span></span> : Takes everything from contents/ and puts it into archive.tar<br />
<span style="color: #ffff00;"><span class="green">gzip -d filename.gz</span> </span>: Decompress the file, extract it</p>
<p><span style="color: #ffff00;"><strong>ZIP Files</strong><span style="color: #000000;">:</span></span> Extracting .zip files shell command<br />
<span style="color: #ffff00;"><span class="green">unzip file.zip</span></span></p>
<p style="color: #009900;"><strong>Firewall - iptables commands<br />
</strong><span style="color: #ffff00;"><span class="green">iptables -I INPUT -s IPADDRESSHERE -j DROP</span></span> : This command stops any connections from the IP address<br />
<span class="green"><span style="color: #ffff00;">iptables -L</span> </span>: List all rules in iptables<br />
<span style="color: #ffff00;"><span class="green">iptables -F</span></span> : Flushes all iptables rules (clears the firewall)<br />
<span style="color: #ffff00;"><span class="green">iptables &#8211;save</span></span> : Saves the currenty ruleset in memory to disk<br />
<span style="color: #ffff00;"><span class="green">service iptables restart</span></span> : Restarts iptables</p>
<p style="color: #000000;"><strong>Apache Shell Commands</strong><br />
<span style="color: #ffff00;"><span class="green">httpd -v</span></span> : Outputs the build date and version of the Apache server.<br />
<span style="color: #ffff00;"><span class="green">httpd -l</span></span> : Lists compiled in Apache modules<br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">httpd status</span></span> : Only works if mod_status is enabled and shows a page of active connections<br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">service httpd restart</span></span> : Restarted Apache web server</p>
<p><strong>MySQL Shell Commands</strong><br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">mysqladmin processlist</span></span> : Shows active mysql connections and queries<br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">mysqladmin drop databasenamehere</span></span> : Drops/deletes the selected database<br />
<span style="color: #ffff00;"><span class="green" style="color: #009900;">mysqladmin create databasenamehere</span> </span>: Creates a mysql database</p>
<p>Restore MySQL Database Shell Command<br />
<span style="color: #009900;"><span class="green">mysql -u username -ppassword -h webhost databasename &lt; databasefile.sql</span> : Restores a MySQL database from databasefile.sql</span></p>
<p>Backup MySQL Database Shell Command<br />
<span style="color: #009900;"><span class="green">mysqldump -u username -ppassword -h webhost databasename &gt; databasefile.sql </span>: Backup MySQL database to databasefile.sql</span></p>
<p><strong><span style="color: #009900;">kill</span>: </strong>terminate a system process<br />
<em>kill -9 PID</em> EG: <em>kill -9 431<br />
kill PID </em>EG: <em>kill 10550</em><br />
Use <em>top</em> or <em>ps ux </em>to get system PIDs (Process IDs)</p>
<p>EG:</p>
<table border="0">
<tbody>
<tr>
<td>PID</td>
<td>TTY</td>
<td>TIME</td>
<td>COMMAND</td>
</tr>
<tr>
<td>10550</td>
<td>pts/3</td>
<td>0:01</td>
<td>/bin/csh</td>
</tr>
<tr>
<td>10574</td>
<td>pts/4</td>
<td>0:02</td>
<td>/bin/csh</td>
</tr>
<tr>
<td>10590</td>
<td>pts/4</td>
<td>0:09</td>
<td>APP</td>
</tr>
</tbody>
</table>
<p>Each line represents one process, with a process being loosely defined as a running instance of a program. The column headed PID (process ID) shows the assigned process numbers of the processes. The heading COMMAND shows the location of the executed process.</p>
<p><strong>Putting commands together</strong><br />
Often you will find you need to use different commands on the same line. Here are some examples. Note that the | character is called a pipe, it takes date from one program and pipes it to another.<br />
<em>&gt;</em> means create a new file, overwriting any content already there.<br />
<em>&gt;&gt;</em> means tp append data to a file, creating a newone if it doesn not already exist.<br />
<em>&lt;</em> send input from a file back into a command.</p>
<p><em style="color: #009900;">grep User /usr/local/apache/conf/httpd.conf |more<br />
</em>This will dump all lines that match User from the httpd.conf, then print the results to your screen one page at a time.</p>
<p><span style="color: #ffff00;"><em style="color: #009900;">last -a &gt; /root/lastlogins.tmp</em></span><br />
This will print all the current login history to a file called lastlogins.tmp in /root/</p>
<p><em><span style="color: #009900;">tail -10000 /var/log/exim_mainlog |grep domain.com |more</span><br />
</em>This will grab the last 10,000 lines from /var/log/exim_mainlog, find all occurances of domain.com (the period represents &#8216;anything&#8217;,<br />
&#8211; comment it out with a so it will be interpretted literally), then send it to your screen page by page.</p>
<p><em><span style="color: #009900;">netstat -an |grep :80 |wc -l</span><br />
</em>Show how many active connections there are to apache (httpd runs on port 80)</p>
<p><em><span style="color: #009900;">mysqladmin processlist |wc -l</span><br />
</em>Show how many current open connections there are to mysql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.antihostmonster.com/2009/03/things-to-help-when-migrating-from-one-server-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

