<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Holiday Giveaway: Win Learning Nagios 3.0 Book</title>
	<atom:link href="http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 11:52:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Bob M</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4293</link>
		<dc:creator>Bob M</dc:creator>
		<pubDate>Wed, 24 Dec 2008 21:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4293</guid>
		<description>I know the contest is over but here is command that I think is a pretty good way of taring up a directory and transferring the file to a remote system in one step:

tar zcvf - /some-filesystem &#124; ssh user@some-machine &quot;cat &gt; /tmp/test.tar.gz&quot;

Saves me time of not having to wait for the tar process to finish and then scp it over to the remote system.</description>
		<content:encoded><![CDATA[<p>I know the contest is over but here is command that I think is a pretty good way of taring up a directory and transferring the file to a remote system in one step:</p>
<p>tar zcvf &#8211; /some-filesystem | ssh user@some-machine &#8220;cat &gt; /tmp/test.tar.gz&#8221;</p>
<p>Saves me time of not having to wait for the tar process to finish and then scp it over to the remote system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Geek Stuff &#187; Holiday Giveaway Winners for Learning Nagios 3.0 Book</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4263</link>
		<dc:creator>The Geek Stuff &#187; Holiday Giveaway Winners for Learning Nagios 3.0 Book</dc:creator>
		<pubDate>Wed, 24 Dec 2008 06:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4263</guid>
		<description>[...] part of Holiday Giveaway contest, I&#8217;ve asked you to share your favorite Unix command and a sample usage.   Following are three [...]</description>
		<content:encoded><![CDATA[<p>[...] part of Holiday Giveaway contest, I&#8217;ve asked you to share your favorite Unix command and a sample usage.   Following are three [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter VG</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4180</link>
		<dc:creator>Peter VG</dc:creator>
		<pubDate>Mon, 22 Dec 2008 18:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4180</guid>
		<description>We needed a script that had to remove from a directory all files except for a specific number of file names. This directory was filled by another script that extracted attachments from emails that were received on a dedicated email address. Finally a print script toke the valid attachments and printed them, afterwards removed them. Since it was a public email address a lot of garbage was unavoidable and as a result also a lot of garbage attachments. To remove the garbage attachments I used a &quot;remove except for ...&quot; command:

find . -type f ! \( -name &#039;FA*&#039; -o -name &#039;DE*&#039; -o -name &#039;*.pdf&#039; -o -name &#039;m2t*.wrk&#039; \) -exec rm {} \; &gt; /dev/null 2&gt;&amp;1

This command removes all files except for files with name &quot;FA*&quot;, &quot;DE*&quot;, &quot;*.pdf&quot; and &quot;m2t*.wrk&quot;.</description>
		<content:encoded><![CDATA[<p>We needed a script that had to remove from a directory all files except for a specific number of file names. This directory was filled by another script that extracted attachments from emails that were received on a dedicated email address. Finally a print script toke the valid attachments and printed them, afterwards removed them. Since it was a public email address a lot of garbage was unavoidable and as a result also a lot of garbage attachments. To remove the garbage attachments I used a &#8220;remove except for &#8230;&#8221; command:</p>
<p>find . -type f ! \( -name &#8216;FA*&#8217; -o -name &#8216;DE*&#8217; -o -name &#8216;*.pdf&#8217; -o -name &#8216;m2t*.wrk&#8217; \) -exec rm {} \; &gt; /dev/null 2&gt;&amp;1</p>
<p>This command removes all files except for files with name &#8220;FA*&#8221;, &#8220;DE*&#8221;, &#8220;*.pdf&#8221; and &#8220;m2t*.wrk&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy M</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4169</link>
		<dc:creator>Jimmy M</dc:creator>
		<pubDate>Mon, 22 Dec 2008 10:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4169</guid>
		<description>After all the operating systems I have used I have come across one command that simplifies everything  from confusion to light. Some might take it lightly but these simply comand will make all linux jargon come to light. 

apropos *anything*

this will give you a quick discription of the command or instruction you want to know. sub *anything* with any command eg. man , shell, gcc, shutdown. enjoy</description>
		<content:encoded><![CDATA[<p>After all the operating systems I have used I have come across one command that simplifies everything  from confusion to light. Some might take it lightly but these simply comand will make all linux jargon come to light. </p>
<p>apropos *anything*</p>
<p>this will give you a quick discription of the command or instruction you want to know. sub *anything* with any command eg. man , shell, gcc, shutdown. enjoy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siva</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4077</link>
		<dc:creator>Siva</dc:creator>
		<pubDate>Fri, 19 Dec 2008 13:28:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4077</guid>
		<description>Hi
My favorite Linux Commaind : Nmap

My fav Editor - Vim

Siva</description>
		<content:encoded><![CDATA[<p>Hi<br />
My favorite Linux Commaind : Nmap</p>
<p>My fav Editor &#8211; Vim</p>
<p>Siva</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thierry</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4072</link>
		<dc:creator>Thierry</dc:creator>
		<pubDate>Fri, 19 Dec 2008 10:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4072</guid>
		<description>hands down the following or how to remove ALL the .tmp files in one go. Can be obviously adapted for other file types or modified to one&#039;s heart&#039;s content.

ls &#124; grep .tmp &#124; xargs rm -f</description>
		<content:encoded><![CDATA[<p>hands down the following or how to remove ALL the .tmp files in one go. Can be obviously adapted for other file types or modified to one&#8217;s heart&#8217;s content.</p>
<p>ls | grep .tmp | xargs rm -f</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nippip</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4055</link>
		<dc:creator>nippip</dc:creator>
		<pubDate>Fri, 19 Dec 2008 03:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4055</guid>
		<description>many of my favorites have been already mentioned but one that I use for trouble shooting a process is;

strace -p 

This will throw to stdout what the process is actually doing or not doing which can be very helpful.</description>
		<content:encoded><![CDATA[<p>many of my favorites have been already mentioned but one that I use for trouble shooting a process is;</p>
<p>strace -p </p>
<p>This will throw to stdout what the process is actually doing or not doing which can be very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valqk</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4038</link>
		<dc:creator>valqk</dc:creator>
		<pubDate>Thu, 18 Dec 2008 20:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4038</guid>
		<description>@unixthirst
you can simply add an alias cspah forexample that does cd /long/path/here
alias cspath=&#039;cd /long/path/here&#039; in sh(bash)
@Flynets
you can simply do 
for k in *.jpg instead of calling ls

instead of -print&#124;xargs rm
you can simply call -delete (work&#039;s on most linuxes, depends on find version. on debian 4 works, on debian 3 not)...
I couldn&#039;t stopped myself posting this.
sorry. :)</description>
		<content:encoded><![CDATA[<p>@unixthirst<br />
you can simply add an alias cspah forexample that does cd /long/path/here<br />
alias cspath=&#8217;cd /long/path/here&#8217; in sh(bash)<br />
@Flynets<br />
you can simply do<br />
for k in *.jpg instead of calling ls</p>
<p>instead of -print|xargs rm<br />
you can simply call -delete (work&#8217;s on most linuxes, depends on find version. on debian 4 works, on debian 3 not)&#8230;<br />
I couldn&#8217;t stopped myself posting this.<br />
sorry. <img src='http://www.thegeekstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flynets</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4027</link>
		<dc:creator>Flynets</dc:creator>
		<pubDate>Thu, 18 Dec 2008 16:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4027</guid>
		<description>My best tips: 

for vim : Replace Unix carriege (^M) - :%s/\r/\r/g

for shell:

- Remove backup files = find -iname &quot;*~&quot; -print&#124;xargs rm
- Replace space character =
find . -type f -iname &quot;*.mp3&quot; -exec rename &quot;s/ /_/g&quot; {} \;
- Resize and create new pictures with covert command (ImageMagick) = 
for k in $(ls *.jpg); do convert -resize 800 -quality 80 $k r800-$k; done
- Resize pictures with mogrify command (ImageMagick) = 
for k in $(ls *.jpg); do mogrify -resize 800 -quality 80 $k ; done

happy coding :)</description>
		<content:encoded><![CDATA[<p>My best tips: </p>
<p>for vim : Replace Unix carriege (^M) &#8211; :%s/\r/\r/g</p>
<p>for shell:</p>
<p>- Remove backup files = find -iname &#8220;*~&#8221; -print|xargs rm<br />
- Replace space character =<br />
find . -type f -iname &#8220;*.mp3&#8243; -exec rename &#8220;s/ /_/g&#8221; {} \;<br />
- Resize and create new pictures with covert command (ImageMagick) =<br />
for k in $(ls *.jpg); do convert -resize 800 -quality 80 $k r800-$k; done<br />
- Resize pictures with mogrify command (ImageMagick) =<br />
for k in $(ls *.jpg); do mogrify -resize 800 -quality 80 $k ; done</p>
<p>happy coding <img src='http://www.thegeekstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: unixthirst</title>
		<link>http://www.thegeekstuff.com/2008/12/holiday-giveaway-win-learning-nagios-30-book/comment-page-1/#comment-4018</link>
		<dc:creator>unixthirst</dc:creator>
		<pubDate>Thu, 18 Dec 2008 12:34:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=283#comment-4018</guid>
		<description>CDPATH

It is one of a simple and very useful hacker, learnt from this blog.

export a CDPATH to a 4th level directory which i would use it often as,
export CDPATH=/a/b/c/d/

Using which i can go to the 4th level directory simply, without keying in all those dir names.....

read http://www.thegeekstuff.com/2008/10/6-awesome-linux-cd-command-hacks-productivity-tip3-for-geeks/</description>
		<content:encoded><![CDATA[<p>CDPATH</p>
<p>It is one of a simple and very useful hacker, learnt from this blog.</p>
<p>export a CDPATH to a 4th level directory which i would use it often as,<br />
export CDPATH=/a/b/c/d/</p>
<p>Using which i can go to the 4th level directory simply, without keying in all those dir names&#8230;..</p>
<p>read <a href="http://www.thegeekstuff.com/2008/10/6-awesome-linux-cd-command-hacks-productivity-tip3-for-geeks/" rel="nofollow">http://www.thegeekstuff.com/2008/10/6-awesome-linux-cd-command-hacks-productivity-tip3-for-geeks/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 13:05:48 -->
