<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Code Walker</title>
	<atom:link href="http://naoshad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://naoshad.wordpress.com</link>
	<description>A coder&#039;s Blog...</description>
	<lastBuildDate>Tue, 06 Jul 2010 07:08:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='naoshad.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f0df217651bce402860d6d17f5fea971?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Code Walker</title>
		<link>http://naoshad.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://naoshad.wordpress.com/osd.xml" title="Code Walker" />
	<atom:link rel='hub' href='http://naoshad.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Earn money online!</title>
		<link>http://naoshad.wordpress.com/2010/07/06/earn-money-online/</link>
		<comments>http://naoshad.wordpress.com/2010/07/06/earn-money-online/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 07:08:52 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=36</guid>
		<description><![CDATA[Advertise to over 10 million users across the globe. We advertise your business in global network of affiliate portals, each with own targeted auditory. Our company gives you innovative advertising strategies that helps your company succeed on the Internet. We will give you real and visible results and take your web-site to the next level. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=36&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.support.wordpress.com/affiliate-links/"><img src="http://www.bigextracash.com/images/customers.png" border="0" alt="Advertise to over 10 million customers" align="left" hspace="8"></a></p>
<h2>Advertise to over 10 million users across the globe.</h2>
<p>We advertise your business in global network of affiliate portals,<br />
each with own targeted auditory.<br />
Our company gives you innovative advertising strategies that helps your company succeed on the Internet.<br />
We will give you real and visible results and take your web-site to the next level.<br />
<a href="http://en.support.wordpress.com/affiliate-links/">Advertise to Over 10 Million individuals Now&#8230;</a></p>
<p><a href="http://en.support.wordpress.com/affiliate-links/"><img src="http://www.bigextracash.com/images/increase.png" border="0" alt="Increase search engine rank" align="left" hspace="8"></a></p>
<h2>Increase your site search engine rankings</h2>
<p>Be presented on search engines is one of the most critical ways to increase web-site<br />
traffic and expose your business or service to customers who might be interested in your product.<br />
All big search engines utilize a software to determine your web-site ranks.<br />
Search engines know how many web-sites are linking to your web-site; more referrers and hits<br />
better rank for your web site.<br />
<a href="http://en.support.wordpress.com/affiliate-links/">Get Higher Rank&#8230;</a></p>
<p><a href="http://en.support.wordpress.com/affiliate-links/"><img src="http://www.bigextracash.com/images/sale.png" border="0" alt="Millions of Visitors" align="left" hspace="8"></a></p>
<h2>Millions of Customers</h2>
<p>Connect your business to millions of shoppers looking for products and services.<br />
Our auditory is constantly increasing and now it&#8217;s over 25 million unique customers every month.<br />
We only work with high-quality local and international advertising webpages, which bring potential<br />
visitors from North America, Western Europe and upcoming markets.<br />
<a href="http://en.support.wordpress.com/affiliate-links/">Get More Traffic, Get More Shoppers&#8230;</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=36&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2010/07/06/earn-money-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>

		<media:content url="http://www.bigextracash.com/images/customers.png" medium="image">
			<media:title type="html">Advertise to over 10 million customers</media:title>
		</media:content>

		<media:content url="http://www.bigextracash.com/images/increase.png" medium="image">
			<media:title type="html">Increase search engine rank</media:title>
		</media:content>

		<media:content url="http://www.bigextracash.com/images/sale.png" medium="image">
			<media:title type="html">Millions of Visitors</media:title>
		</media:content>
	</item>
		<item>
		<title>SmartWebSource Launched its website</title>
		<link>http://naoshad.wordpress.com/2010/03/18/smartwebsource-launched-its-website/</link>
		<comments>http://naoshad.wordpress.com/2010/03/18/smartwebsource-launched-its-website/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 19:26:59 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[website design]]></category>
		<category><![CDATA[Website development]]></category>
		<category><![CDATA[Website maintenance]]></category>
		<category><![CDATA[Website Transfer]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=34</guid>
		<description><![CDATA[We are pleased to inform you that Today SmartWebSource LLC has launched their new website. All information related to SamrtWebSource will be available here. Our services details, Support Website, Client communications, New projects update, clients testimonials, feedback will be available here. Please keep your eyes one this website www.smartwebsource.com for your website related service update… [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=34&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We are pleased to inform you that Today SmartWebSource LLC has  launched their  new website. All information related to SamrtWebSource  will be <a href="http://www.smartwebsource.com"><img class="alignright" title="SmartWebSource Logo" src="http://smartwebsource.com/wp-content/uploads/2010/03/smartwebsource-logo.jpg" alt="SmartWebSource Logo" width="350" height="85" /></a>available here.   Our services details, Support Website, Client communications, New  projects  update, clients testimonials, feedback will be available here.</p>
<p>Please keep your eyes one this website <strong><a title="www.smartwebsource.com" href="http://www.smartwebsource.com/">www.smartwebsource.com</a></strong> for  your website related service update… for maintain your website,  transfer your  website, redesign your website, Custom CMS, <strong>Content  Management  System</strong>, <strong>Content Digitization</strong>, <strong>Ecommerce/online   store</strong>, your Blog, Membership related issues, Donation drive… or  only  web presence… for Small and medium sized companies.</p>
<p>Visit us for more details: <strong><a title="www.smartwebsource.com" href="http://www.smartwebsource.com/">www.smartwebsource.com</a></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=34&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2010/03/18/smartwebsource-launched-its-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>

		<media:content url="http://smartwebsource.com/wp-content/uploads/2010/03/smartwebsource-logo.jpg" medium="image">
			<media:title type="html">SmartWebSource Logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Directory Listing using .htaccess</title>
		<link>http://naoshad.wordpress.com/2010/02/15/directory-listing-using-htaccess/</link>
		<comments>http://naoshad.wordpress.com/2010/02/15/directory-listing-using-htaccess/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 18:16:06 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[directory listing]]></category>
		<category><![CDATA[enable disable directory listing]]></category>
		<category><![CDATA[IndexIgnore]]></category>
		<category><![CDATA[Options +Indexes]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=32</guid>
		<description><![CDATA[When a web browser is pointed to a directory on your web site which does not have an index.html file in it, the files in that directory can be listed on a web page. 1. Enable/Disable Directory Listing To have the web server produce a list of files for such directories, use the below line [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=32&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:verdana,Arial,Helvetica;">When a web browser is pointed to a directory on your web site which does not have an index.html file in it, the files in that directory can be listed on a web page.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong>1. <span style="text-decoration:underline;">Enable/Disable Directory Listing</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">To have the web server produce a list of files for such directories, use the below line in your .htaccess.</span></p>
<blockquote><p><strong><span style="color:green;">Options +Indexes </span></strong></p></blockquote>
<p><strong><span style="color:#000000;">2. <span style="text-decoration:underline;">To disable directory listing(</span></span></strong><span style="font-family:verdana,Arial,Helvetica;">an error (403) returned instead</span><strong><span style="color:#000000;"><span style="text-decoration:underline;">)</span></span></strong></p>
<blockquote><p><strong><span style="color:green;">Options -Indexes </span></strong></p></blockquote>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong><span style="text-decoration:underline;">3. Ignore Files</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Let&#8217;s say you have a directory with .jpg, .gif and .png image files. You only want the .png files to show in the directory listings. Add this line to your .htaccess. </span></p>
<blockquote><p><span style="color:green;"> <strong>IndexIgnore *.gif *.jpg </strong></span></p></blockquote>
<blockquote><p><strong><span style="color:green;"><br />
</span></strong></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=32&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2010/02/15/directory-listing-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
		<item>
		<title>robots.txt</title>
		<link>http://naoshad.wordpress.com/2009/11/17/robots-txt/</link>
		<comments>http://naoshad.wordpress.com/2009/11/17/robots-txt/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 07:32:43 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[robots.txt]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=26</guid>
		<description><![CDATA[Web site owners use the /robots.txt file to give instructions about their site to web robots; this is called The Robots Exclusion Protocol. It works likes this: a robot wants to vists a Web site URL, say http://www.example.com/welcome.html. Before it does so, it firsts checks for http://www.example.com/robots.txt, and finds: User-agent: * Disallow: / The &#8220;User-agent: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=26&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Web site owners use the /robots.txt file to give instructions about their site to web robots; this is called <em>The Robots Exclusion Protocol</em>.</p>
<p>It works likes this: a robot wants to vists a Web site URL, say http://www.example.com/welcome.html. Before it does so, it firsts checks for http://www.example.com/robots.txt, and finds:</p>
<pre>User-agent: *
Disallow: /
</pre>
<p>The &#8220;<tt>User-agent: *</tt>&#8221; means this section applies to all robots.  The &#8220;<tt>Disallow: /</tt>&#8221; tells the robot that it should not visit any pages on the site.</p>
<p>There are two important considerations when using /robots.txt:</p>
<ul>
<li> robots can ignore your /robots.txt. Especially malware robots that scan the web for security vulnerabilities, and email address harvesters used by spammers will pay no attention.</li>
<li> the /robots.txt file is a publicly available file. Anyone can see what sections of your server you don&#8217;t want robots to use.</li>
</ul>
<p>So don&#8217;t try to use /robots.txt to hide information.</p>
<p>The &#8220;/robots.txt&#8221; file is a text file, with one or more records. Usually contains a single record looking like this:</p>
<pre>User-agent: *
Disallow: /cgi-bin/
Disallow: /tmp/
Disallow: /~joe/
</pre>
<p>In this example, three directories are excluded.</p>
<p>Note that you need a separate &#8220;Disallow&#8221; line for every URL prefix you want to exclude &#8212; you cannot say &#8220;Disallow: /cgi-bin/ /tmp/&#8221; on a single line. Also, you may not have blank lines in a record, as they are used to delimit multiple records.</p>
<p>Note also that globbing and regular expression are <strong>not</strong> supported in either the User-agent or Disallow lines. The &#8216;*&#8217; in the User-agent field is a special value meaning &#8220;any robot&#8221;. Specifically, you cannot have lines like &#8220;User-agent: *bot*&#8221;, &#8220;Disallow: /tmp/*&#8221; or &#8220;Disallow: *.gif&#8221;.</p>
<p>What you want to exclude depends on your server.  Everything not explicitly disallowed is considered fair game to retrieve. Here follow some examples:</p>
<h5>To exclude all robots from the entire server</h5>
<pre>User-agent: *
Disallow: /
</pre>
<h5>To allow all robots complete access</h5>
<pre>User-agent: *
Disallow:
</pre>
<p>(or just create an empty &#8220;/robots.txt&#8221; file, or don&#8217;t use one at all)</p>
<h5>To exclude all robots from part of the server</h5>
<pre>User-agent: *
Disallow: /cgi-bin/
Disallow: /tmp/
Disallow: /junk/
</pre>
<h5>To exclude a single robot</h5>
<pre>User-agent: BadBot
Disallow: /
</pre>
<h5>To allow a single robot</h5>
<pre>User-agent: Google
Disallow:

User-agent: *
Disallow: /
</pre>
<h5>To exclude all files except one</h5>
<p>This is currently a bit awkward, as there is no &#8220;Allow&#8221; field.  The easy way is to put all files to be disallowed into a separate directory, say &#8220;stuff&#8221;, and leave the one file in the level above this directory:</p>
<pre>User-agent: *
Disallow: /~joe/stuff/
</pre>
<p><strong>Alternatively you can explicitly disallow all disallowed pages: </strong></p>
<pre>User-agent: *
Disallow: /~joe/junk.html
Disallow: /~joe/foo.html
Disallow: /~joe/bar.html
</pre>
<div><a href="http://www.robotstxt.org/robotstxt.html?format=print"><br />
</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=26&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2009/11/17/robots-txt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable directory listings using .htaccess file</title>
		<link>http://naoshad.wordpress.com/2009/11/17/disable-directory-listings-using-htaccess-file/</link>
		<comments>http://naoshad.wordpress.com/2009/11/17/disable-directory-listings-using-htaccess-file/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 07:24:40 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Disable directory listings]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=24</guid>
		<description><![CDATA[Preventing directory listings can be very useful if for example, you have a directory containing important &#8216;.zip&#8217; archive files or to prevent viewing of your image directories. Alternatively it can also be useful to enable directory listings if they are not available on your server, for example if you wish to display directory listings of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=24&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Preventing directory listings can be very useful if for example, you have a directory containing important &#8216;.zip&#8217; archive files or to prevent viewing of your image directories. Alternatively it can also be useful to enable directory listings if they are not available on your server, for example if you wish to display directory listings of your important &#8216;.zip&#8217; files.</p>
<p>To prevent directory listings, create a .htaccess file following the main instructions and guidance which includes the following text:</p>
<p><strong>IndexIgnore *</strong></p>
<p>The above lines tell the Apache Web Server to prevent directory listings of directories and files within the directory containing the .htaccess file. The &#8216;*&#8217; represents a wildcard, this means it will not display any files. It is possible to prevent listings of only certain file types, so for example you can show listings of &#8216;.html&#8217; files but not your &#8216;.zip&#8217; files.</p>
<p>To prevent listing &#8216;.zip&#8217; files, create a .htaccess file following the main instructions and guidance which includes the following text:</p>
<p><strong>IndexIgnore *.zip</strong></p>
<p>The above line tells the Apache Web Server to list all files except those that end with &#8216;.zip&#8217;.</p>
<p>To prevent listing multiple file types, create a .htaccess file following the main instructions and guidance which includes the following text:</p>
<p><strong>IndexIgnore *.zip *.jpg *.gif</strong></p>
<p>The above line tells the Apache Web Server to list all files except those that end with &#8216;.zip&#8217;, &#8216;.jpg&#8217; or &#8216;.gif&#8217;.</p>
<p>Alternatively, if your server does not allow directory listings and you would like to enable them, create a .htaccess file following the main instructions and guidance which includes the following text:</p>
<p><strong>Options +Indexes</strong></p>
<p>The above line tells the Apache Web Server to enable directory listing within the directory containing this .htaccess file. You can also reverse this to disable directory listings by replacing the plus sign before the text &#8216;Indexes&#8217; with a minus sign. e.g. &#8216;<strong>Options -Indexes</strong>&#8216;.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=24&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2009/11/17/disable-directory-listings-using-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
		<item>
		<title>Magic with htaccess file &#8211; Increase execution time, session expiry time and file upload size limit</title>
		<link>http://naoshad.wordpress.com/2009/09/17/magic-with-htaccess-file-increase-execution-time-session-expiry-time-and-file-upload-size-limit/</link>
		<comments>http://naoshad.wordpress.com/2009/09/17/magic-with-htaccess-file-increase-execution-time-session-expiry-time-and-file-upload-size-limit/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 04:22:12 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=22</guid>
		<description><![CDATA[php_value post_max_size 5M php_value upload_max_filesize 5M php_value memory_limit 300M php_value max_execution_time 259200 php_value max_input_time 259200 php_value session.gc_maxlifetime 1200 php_value memory_limit 300M &#8211; Set higher default php_value memory_limit in .htaccess upload_max_filesize 5M &#8211; it increases default upload limit. The default upload limit is 2MB. the above htaccess increase increases file limit 2mb to 5 mb php_value [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=22&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>php_value post_max_size 5M</p>
<p>php_value upload_max_filesize 5M</p>
<p>php_value memory_limit 300M</p>
<p>php_value max_execution_time 259200</p>
<p>php_value max_input_time 259200</p>
<p>php_value session.gc_maxlifetime 1200</p>
<p>php_value memory_limit 300M &#8211; Set higher default php_value memory_limit in .htaccess</p>
<p>upload_max_filesize 5M &#8211; it increases default upload limit. The default upload limit is 2MB. the above htaccess increase increases file limit 2mb to 5 mb</p>
<p>php_value max_execution_time:</p>
<p>Set the number of seconds a script is allowed to run. If this is reached,</p>
<p>the script returns a fatal error. The default limit is 30 seconds or, if it</p>
<p>exists, the max_execution_time value defined in the configuration file. If</p>
<p>seconds is set to zero, no time limit is imposed.</p>
<p>php_value session.gc_maxlifetime:</p>
<p>The session.gc_maxlifetime only sets the age of the session files that will be deleted when</p>
<p>garbage collection runs.</p>
<p>If you have a busy web site with a lot of sessions being created, garbage collection will</p>
<p>run based on session.gc_probability/session.gc_divisor. Despite this being called</p>
<p>“probability” I tested this and it is strictly a count. Using the default</p>
<p>gc_probability/gc_divisor of 1/100, this means that garbage collection will run every 100</p>
<p>new sessions (Edit: Actually this occurs within the session_start() coding and would count</p>
<p>re-started sessions as well) and delete any existing session files that are older than the</p>
<p>session.gc_maxlifetime. There is no file locking on the session files, so active session</p>
<p>files will be deleted and things like users getting logged out will occur.</p>
<p>If this is on shared hosting and the session files are all kept in the default location and</p>
<p>someone else is using a smaller session.gc_maxlifetime or a more frequent</p>
<p>gc_probability/gc_divisor, then any of the session files will get deleted based on the</p>
<p>lowest value of gc_maxlifetime and the most frequent gc_probability/gc_divisor.</p>
<p>You need to increase session.gc_maxlifetime or make session.gc_divisor larger and if this is</p>
<p>on shared hosting, set session.save_path to be a location within your web space.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=22&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2009/09/17/magic-with-htaccess-file-increase-execution-time-session-expiry-time-and-file-upload-size-limit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
		<item>
		<title>How to change the root/user Password using SSH</title>
		<link>http://naoshad.wordpress.com/2009/08/24/how-to-change-the-rootuser-password-using-ssh/</link>
		<comments>http://naoshad.wordpress.com/2009/08/24/how-to-change-the-rootuser-password-using-ssh/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 06:10:29 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh commands]]></category>
		<category><![CDATA[ssh password change]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=17</guid>
		<description><![CDATA[To change your password, enter the command passwd root/user in the prompt which displays, for example root@yourserver. In the three prompt lines which follow, insert the information Linux® asks for, i. e.: Enter existing login password: Asks you to enter your current root/user password: New password: Asks you to enter your new password, and Re-enter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=17&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To change your password, enter the command</p>
<div>
<div>
<pre>passwd</pre>
</div>
</div>
<p>root/user in the prompt which displays, for example root@yourserver. In the three prompt lines which follow, insert the information Linux® asks for, i. e.:</p>
<table border="0" cellspacing="0" cellpadding="2" width="580">
<tbody>
<tr>
<td width="12" valign="top"></td>
<td valign="top">
<div>
<div>
<pre>Enter existing login password:</pre>
</div>
</div>
<p>Asks you to enter your current root/user password:</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="580">
<tbody>
<tr>
<td width="12" valign="top"></td>
<td valign="top">
<div>
<div>
<pre>New password:</pre>
</div>
</div>
<p>Asks you to enter your new password, and</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="580">
<tbody>
<tr>
<td width="12" valign="top"></td>
<td valign="top">
<div>
<div>
<pre>Re-enter new password:</pre>
</div>
</div>
<p>Asks you to re-enter your new password.</td>
</tr>
</tbody>
</table>
<p>Once you have done this, you will have changed your root/user password for your server successfully.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=17&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2009/08/24/how-to-change-the-rootuser-password-using-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
		<item>
		<title>Trim white space</title>
		<link>http://naoshad.wordpress.com/2009/08/19/trim-white-space/</link>
		<comments>http://naoshad.wordpress.com/2009/08/19/trim-white-space/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 15:09:21 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Trim white space]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=14</guid>
		<description><![CDATA[Here is a way to trim the white space from a string in Javascript: stringToTrim.replace(/^\s+&#124;\s+$/g,""); //trim from both side For left trim: stringToTrim.replace(/^\s+/,"") For right trim: stringToTrim.replace(/\s+$/,"") function trim(stringToTrim) { return stringToTrim.replace(/^\s+&#124;\s+$/g,""); } function ltrim(stringToTrim) { return stringToTrim.replace(/^\s+/,""); } function rtrim(stringToTrim) { return stringToTrim.replace(/\s+$/,""); } // example of using trim, ltrim, and rtrim var myString [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=14&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
<div>
Here is a way to <em>trim</em> the white space from a string in <strong>Javascript</strong>:
<pre><code>stringToTrim.replace(/^\s+|\s+$/g,""); //trim from both side</code>
<em><em>For left trim:</em></em>
<pre>
<pre><code>stringToTrim.replace(/^\s+/,"")</code></pre>
</pre>
</pre>
<p><strong>For</strong> <em>right trim</em>:</p>
<pre><code>stringToTrim.replace(/\s+$/,"")</code></pre>
</div>
<p><code></p>
<p></code></p>
<pre><code>function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function ltrim(stringToTrim) {
	return stringToTrim.replace(/^\s+/,"");
}
function rtrim(stringToTrim) {
	return stringToTrim.replace(/\s+$/,"");
}

// example of using trim, ltrim, and rtrim
var myString = " hello my name is ";
alert("*"+trim(myString)+"*");
alert("*"+ltrim(myString)+"*");
alert("*"+rtrim(myString)+"*");
</code></pre>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=14&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2009/08/19/trim-white-space/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
		<item>
		<title>Common SSH Commands</title>
		<link>http://naoshad.wordpress.com/2009/06/12/common-ssh-commands/</link>
		<comments>http://naoshad.wordpress.com/2009/06/12/common-ssh-commands/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 12:23:33 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[shell commands]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh commands]]></category>

		<guid isPermaLink="false">http://naoshad.wordpress.com/?p=9</guid>
		<description><![CDATA[Frequently used SSH commands or linux shell commands. ls : list files/directories in a directory, comparable to dir in windows/dos. ls -al : shows all files (including ones that start with a period), directories, and details attributes for each file. cd : change directory · · cd /usr/local/apache : go to /usr/local/apache/ directory cd ~ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=9&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Frequently used SSH commands or linux shell commands.</p>
<p>ls : list files/directories in a directory, comparable to dir in windows/dos.</p>
<p>ls -al : shows all files (including ones that start with a period), directories, and details attributes for each file.</p>
<p>cd : change directory · · cd /usr/local/apache : go to /usr/local/apache/ directory</p>
<p>cd ~ : go to your home directory</p>
<p>cd &#8211; : go to the last directory you were in</p>
<p>cd .. : go up a directory cat : print file contents to the screen</p>
<p>cat filename.txt : cat the contents of filename.txt to your screen</p>
<p>chmod: changes file access permissions</p>
<p>The set of 3 go in this order from left to right:</p>
<p>USER &#8211; GROUP &#8211; EVERONE</p>
<p>Article provided by WebHostGear.com</p>
<p>0 = &#8212;  No permission</p>
<p>1 = &#8211;X  Execute only</p>
<p>2 = -W-  Write only</p>
<p>3 = -WX  Write and execute</p>
<p>4 = R&#8211;  Read only</p>
<p>5 = R-X  Read and execute</p>
<p>6 = RW-  Read and write</p>
<p>7 = RWX  Read, write and execute</p>
<p>Usage:</p>
<p>chmod numberpermissions filename</p>
<p>chmod 000 : No one can access</p>
<p>chmod 644: Usually for HTML pages</p>
<p>chmod 755: Usually for CGI scripts</p>
<p>chown: changes file ownership permissions</p>
<p>The set of 2 go in this order from left to right:</p>
<p>USER &#8211; GROUP</p>
<p>chown root myfile.txt : Changes the owner of the file to root</p>
<p>chown root.root myfile.txt : Changes the owner and group of the file to root</p>
<p>tail : like cat, but only reads the end of the file</p>
<p>tail /var/log/messages : see the last 20 (by default) lines of /var/log/messages</p>
<p>tail -f /var/log/messages : watch the file continuously, while it&#8217;s being updated</p>
<p>tail -200 /var/log/messages : print the last 200 lines of the file to the screen</p>
<p>more : like cat, but opens the file one screen at a time rather than all at once</p>
<p>more /etc/userdomains : browse through the userdomains file. hit Spaceto go to the next page, q to quit</p>
<p>pico : friendly, easy to use file editor</p>
<p>pico /home/burst/public_html/index.html : edit the index page for the user&#8217;s website.</p>
<p>File Editing with VI ssh commands</p>
<p>vi : another editor, tons of features, harder to use at first than pico</p>
<p>vi /home/burst/public_html/index.html : edit the index page for the user&#8217;s website.</p>
<p>Whie in the vi program you can use the following useful commands, you will need to hit SHIFT + : to go into command mode</p>
<p>:q! : This force quits the file without saving and exits vi</p>
<p>:w : This writes the file to disk, saves it</p>
<p>:wq : This saves the file to disk and exists vi</p>
<p>:LINENUMBER : EG :25 : Takes you to line 25 within the file</p>
<p>:$ : Takes you to the last line of the file</p>
<p>:0 : Takes you to the first line of the file</p>
<p>grep : looks for patterns in files</p>
<p>grep root /etc/passwd : shows all matches of root in /etc/passwd</p>
<p>grep -v root /etc/passwd : shows all lines that do not match root</p>
<p>ln : create&#8217;s &#8220;links&#8221; between files and directories</p>
<p>ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf : 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>last : shows who logged in and when</p>
<p>last -20 : shows only the last 20 logins</p>
<p>last -20 -a : shows last 20 logins, with the hostname in the last field</p>
<p>w : shows who is currently logged in and where they are logged in from.</p>
<p>who : This also shows who is on the server in an shell.</p>
<p>netstat : shows all current network connections.</p>
<p>netstat -an : shows all connections to the server, the source and destination ips and ports.</p>
<p>netstat -rn : shows routing table for all ips bound to the server.</p>
<p>top : 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.</p>
<p>top then type Shift + M to sort by memory usage or Shift + P to sort by CPU usage</p>
<p>ps: ps is short for process status, which is similar to the top command. It&#8217;s used to show currently running processes and their PID.</p>
<p>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).</p>
<p>ps U username : shows processes for a certain user</p>
<p>ps aux : shows all system processes</p>
<p>ps aux &#8211;forest : shows all system processes like the above but organizes in a hierarchy that&#8217;s very useful!</p>
<p>touch : create an empty file</p>
<p>touch /home/burst/public_html/404.html : create an empty file called 404.html in the directory /home/burst/public_html/</p>
<p>file : attempts to guess what type of file a file is by looking at it&#8217;s content.</p>
<p>file * : prints out a list of all files/directories in a directory</p>
<p>du : shows disk usage.</p>
<p>du -sh : shows a summary, in human-readble form, of total disk space used in the current directory, including subdirectories.</p>
<p>du -sh * : same thing, but for each file and directory. helpful when finding large files taking up space.</p>
<p>wc : word count</p>
<p>wc -l filename.txt : tells how many lines are in filename.txt</p>
<p>cp : copy a file</p>
<p>cp filename filename.backup : copies filename to filename.backup</p>
<p>cp -a /home/burst/new_design/* /home/burst/public_html/ : copies all files, retaining permissions form one directory to another.</p>
<p>cp -av * ../newdir : Copies all files and directories recurrsively in the current directory INTO newdir</p>
<p>mv : Move a file command</p>
<p>mv oldfilename newfilename : Move a file or directory from oldfilename to newfilename</p>
<p>rm : delete a file</p>
<p>rm filename.txt : deletes filename.txt, will more than likely ask if you really want to delete it</p>
<p>rm -f filename.txt : deletes filename.txt, will not ask for confirmation before deleting.</p>
<p>rm -rf tmp/ : recursively deletes the directory tmp, and all files in it, including subdirectories. BE VERY CAREFULL WITH THIS COMMAND!!!</p>
<p>TAR: Creating and Extracting .tar.gz and .tar files</p>
<p>tar -zxvf file.tar.gz : Extracts the file</p>
<p>tar -xvf file.tar : Extracts the file</p>
<p>tar -cf archive.tar contents/ : Takes everything from contents/ and puts it into archive.tar</p>
<p>gzip -d filename.gz : Decompress the file, extract it</p>
<p>ZIP Files:  Extracting .zip files shell command</p>
<p>unzip file.zip</p>
<p>Firewall &#8211; iptables commands</p>
<p>iptables -I INPUT -s IPADDRESSHERE -j DROP : This command stops any connections from the IP address</p>
<p>iptables -L : List all rules in iptables</p>
<p>iptables -F : Flushes all iptables rules (clears the firewall)</p>
<p>iptables &#8211;save : Saves the currenty ruleset in memory to disk</p>
<p>service iptables restart : Restarts iptables</p>
<p>Apache Shell Commands</p>
<p>httpd -v : Outputs the build date and version of the Apache server.</p>
<p>httpd -l : Lists compiled in Apache modules</p>
<p>httpd status : Only works if mod_status is enabled and shows a page of active connections</p>
<p>service httpd restart : Restarted Apache web server</p>
<p>MySQL Shell Commands</p>
<p>mysqladmin processlist : Shows active mysql connections and queries</p>
<p>mysqladmin drop databasenamehere : Drops/deletes the selected database</p>
<p>mysqladmin create databasenamehere : Creates a mysql database</p>
<p>Restore MySQL Database Shell Command</p>
<p>mysql -u username -p password databasename &lt; databasefile.sql : Restores a MySQL database from databasefile.sql</p>
<p>Backup MySQL Database Shell Command</p>
<p>mysqldump -u username -p password databasename &gt; databasefile.sql : Backup MySQL database to databasefile.sql</p>
<p>kill: terminate a system process</p>
<p>kill -9 PID EG: kill -9 431</p>
<p>kill PID EG: kill 10550</p>
<p>Use top or ps ux to get system PIDs (Process IDs)</p>
<p>EG:</p>
<p>PID	TTY	TIME	COMMAND</p>
<p>10550	pts/3	0:01	/bin/csh</p>
<p>10574	pts/4	0:02	/bin/csh</p>
<p>10590	pts/4	0:09	APP</p>
<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>Putting commands together</p>
<p>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.</p>
<p>&gt; means create a new file, overwriting any content already there.</p>
<p>&gt;&gt; means tp append data to a file, creating a newone if it doesn not already exist.</p>
<p>&lt; send input from a file back into a command.</p>
<p>grep User /usr/local/apache/conf/httpd.conf |more</p>
<p>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>last -a &gt; /root/lastlogins.tmp</p>
<p>This will print all the current login history to a file called lastlogins.tmp in /root/</p>
<p>tail -10000 /var/log/exim_mainlog |grep domain.com |more</p>
<p>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;,</p>
<p>&#8211; comment it out with a so it will be interpretted literally), then send it to your screen page by page.</p>
<p>netstat -an |grep :80 |wc -l</p>
<p>Show how many active connections there are to apache (httpd runs on port 80)</p>
<p>mysqladmin processlist |wc -l</p>
<p>Show how many current open connections there are to mysql</p>
<p>[Source: webhostgear.com]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=9&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2009/06/12/common-ssh-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://naoshad.wordpress.com/2009/06/02/hello-world/</link>
		<comments>http://naoshad.wordpress.com/2009/06/02/hello-world/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 14:20:25 +0000</pubDate>
		<dc:creator>naoshad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=1&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/naoshad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/naoshad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/naoshad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/naoshad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/naoshad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/naoshad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/naoshad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/naoshad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/naoshad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/naoshad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/naoshad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/naoshad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/naoshad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/naoshad.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=naoshad.wordpress.com&amp;blog=8003956&amp;post=1&amp;subd=naoshad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://naoshad.wordpress.com/2009/06/02/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b38039aa9dc1656b4a9edc2ffc58052d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naoshad</media:title>
		</media:content>
	</item>
	</channel>
</rss>
