<?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: Fun with Linux Commands-I</title>
	<atom:link href="http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/</link>
	<description>Quick Tweaks For Your System</description>
	<lastBuildDate>Wed, 23 Jun 2010 13:53:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Linux</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-463</link>
		<dc:creator>Linux</dc:creator>
		<pubDate>Tue, 21 Oct 2008 13:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-463</guid>
		<description>iotop, iostat, vmstat etc...  </description>
		<content:encoded><![CDATA[<p>iotop, iostat, vmstat etc&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zartan</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-461</link>
		<dc:creator>Zartan</dc:creator>
		<pubDate>Mon, 20 Oct 2008 20:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-461</guid>
		<description>Most shells that support &quot;cd -&quot; will also support &quot;~-&quot; in pathname expansions.  The ~- construct expands to the previous working directory, so &quot;cd ~-&quot; is the same as &quot;cd -&quot;.

This is useful in a number of situations.  Suppose you want to unpack a tarball that you&#039;ve just downloaded and filed away in your new releases archive part of the file tree.  You are in the directory where you stored the tarball and want to unpack it in /tmp to look it over.  Just do:

  cd /tmp
  tar -xzvf ~-/some_software-version.tgz

Generally ~- (or ~-/) will be expanded by TAB (or ESC-\ if in vi mode), so for the previous example you only need type a few characters of the filename and a TAB.</description>
		<content:encoded><![CDATA[<p>Most shells that support &#8220;cd -&#8221; will also support &#8220;~-&#8221; in pathname expansions.  The ~- construct expands to the previous working directory, so &#8220;cd ~-&#8221; is the same as &#8220;cd -&#8221;.</p>
<p>This is useful in a number of situations.  Suppose you want to unpack a tarball that you&#8217;ve just downloaded and filed away in your new releases archive part of the file tree.  You are in the directory where you stored the tarball and want to unpack it in /tmp to look it over.  Just do:</p>
<p>  cd /tmp<br />
  tar -xzvf ~-/some_software-version.tgz</p>
<p>Generally ~- (or ~-/) will be expanded by TAB (or ESC-\ if in vi mode), so for the previous example you only need type a few characters of the filename and a TAB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-460</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 20 Oct 2008 15:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-460</guid>
		<description>To correct the earlier responder, the expansion for the last word of the last command is &quot;!$&quot;.  This is dual to &quot;!^&quot;, for the first word of the last command.  And a third, very useful expansion is &quot;!*&quot;, for all the parameters to the last command.  For instance, if you just entered a long command line beginning with &quot;apt-gte&quot;:

    apt-gte install foo foo1 foo2 foo3 ...

you can run &quot;apt-get !*&quot; to correct the mistake.</description>
		<content:encoded><![CDATA[<p>To correct the earlier responder, the expansion for the last word of the last command is &#8220;!$&#8221;.  This is dual to &#8220;!^&#8221;, for the first word of the last command.  And a third, very useful expansion is &#8220;!*&#8221;, for all the parameters to the last command.  For instance, if you just entered a long command line beginning with &#8220;apt-gte&#8221;:</p>
<p>    apt-gte install foo foo1 foo2 foo3 &#8230;</p>
<p>you can run &#8220;apt-get !*&#8221; to correct the mistake.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bender</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-459</link>
		<dc:creator>Bender</dc:creator>
		<pubDate>Mon, 20 Oct 2008 14:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-459</guid>
		<description>&quot;rm -rf ~&quot; is fun too ! (DON&#039;T TRY THIS !!!!!!!!!!!!!!! THIS WILL ERASE ALL YOUR HOME DIRECTORY)

I like command like this one : 

cat video.avi &#124; ssh user@server xine - or to backup your user account :

cd;tar zcvf - *&#124; ssh user@backup_server dd of=backup.tar.gz</description>
		<content:encoded><![CDATA[<p>&#8220;rm -rf ~&#8221; is fun too ! (DON&#8217;T TRY THIS !!!!!!!!!!!!!!! THIS WILL ERASE ALL YOUR HOME DIRECTORY)</p>
<p>I like command like this one : </p>
<p>cat video.avi | ssh user@server xine &#8211; or to backup your user account :</p>
<p>cd;tar zcvf &#8211; *| ssh user@backup_server dd of=backup.tar.gz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Haworth</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-458</link>
		<dc:creator>Dan Haworth</dc:creator>
		<pubDate>Mon, 20 Oct 2008 14:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-458</guid>
		<description>In my 11 years of linux use, i&#039;ve never come across cd -

Thanks very much! :)</description>
		<content:encoded><![CDATA[<p>In my 11 years of linux use, i&#8217;ve never come across cd -</p>
<p>Thanks very much! <img src='http://www.quicktweaks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-456</link>
		<dc:creator>A</dc:creator>
		<pubDate>Mon, 20 Oct 2008 11:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-456</guid>
		<description>Bash history variables do not work in shell scripts.</description>
		<content:encoded><![CDATA[<p>Bash history variables do not work in shell scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arkay</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-455</link>
		<dc:creator>Arkay</dc:creator>
		<pubDate>Mon, 20 Oct 2008 10:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-455</guid>
		<description>I&#039;m assuming &quot;saytime&quot; is included in ubunutu.  It sure as hell isn&#039;t on my install of Arch.

Perhaps it might be a good idea to specify that the command line arguments you&#039;re supplying work with distro &quot;X&quot;.

As saytime, while a nice gimmick, is not all that useful as a terminal command and consequently may not be included on all that many distros...

Ubuntu is not the ONLY Linux...

Cheers,

Arkay.</description>
		<content:encoded><![CDATA[<p>I&#8217;m assuming &#8220;saytime&#8221; is included in ubunutu.  It sure as hell isn&#8217;t on my install of Arch.</p>
<p>Perhaps it might be a good idea to specify that the command line arguments you&#8217;re supplying work with distro &#8220;X&#8221;.</p>
<p>As saytime, while a nice gimmick, is not all that useful as a terminal command and consequently may not be included on all that many distros&#8230;</p>
<p>Ubuntu is not the ONLY Linux&#8230;</p>
<p>Cheers,</p>
<p>Arkay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Planet Malaysia</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-454</link>
		<dc:creator>Planet Malaysia</dc:creator>
		<pubDate>Mon, 20 Oct 2008 09:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-454</guid>
		<description>saytime is NOT available on my Redhat, VMware ESX &amp; SuSE box by default.</description>
		<content:encoded><![CDATA[<p>saytime is NOT available on my Redhat, VMware ESX &amp; SuSE box by default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert de Bock</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-453</link>
		<dc:creator>Robert de Bock</dc:creator>
		<pubDate>Mon, 20 Oct 2008 07:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-453</guid>
		<description>$ !! is a great one, here is another cool one to repeat only the last argument of the previous command:

$ ls this-complex-file-name.txt

$ ls -l $!

Regards, Robert de Bock.</description>
		<content:encoded><![CDATA[<p>$ !! is a great one, here is another cool one to repeat only the last argument of the previous command:</p>
<p>$ ls this-complex-file-name.txt</p>
<p>$ ls -l $!</p>
<p>Regards, Robert de Bock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adamkasza</title>
		<link>http://www.quicktweaks.com/2008/10/17/fun-with-linux-commands-i/comment-page-1/#comment-452</link>
		<dc:creator>adamkasza</dc:creator>
		<pubDate>Mon, 20 Oct 2008 07:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.quicktweaks.com/?p=213#comment-452</guid>
		<description>Recently I was astonished by the command line tools provided by the ImageMagick suite (www.imagemagick.org) for manipulating images.

You can convert between file formats and resize images with it by executing a single command. For instance, to resize a JPEG image to 800 px wide (keeping aspect ratio) and to save it in PNG you have to execute this:

$&gt; convert test.jpg -filter Lanczos -resize 800 test.png

And you can do a lot more with it...

I also loved jhead (http://www.sentex.net/~mwandel/jhead/). If you have a digital camera that writes the orientation into the EXIF data, then you can rotate all images automatically:

$&gt; jhead -autorot ./*</description>
		<content:encoded><![CDATA[<p>Recently I was astonished by the command line tools provided by the ImageMagick suite (www.imagemagick.org) for manipulating images.</p>
<p>You can convert between file formats and resize images with it by executing a single command. For instance, to resize a JPEG image to 800 px wide (keeping aspect ratio) and to save it in PNG you have to execute this:</p>
<p>$&gt; convert test.jpg -filter Lanczos -resize 800 test.png</p>
<p>And you can do a lot more with it&#8230;</p>
<p>I also loved jhead (<a href="http://www.sentex.net/~mwandel/jhead/" rel="nofollow">http://www.sentex.net/~mwandel/jhead/</a>). If you have a digital camera that writes the orientation into the EXIF data, then you can rotate all images automatically:</p>
<p>$&gt; jhead -autorot ./*</p>
]]></content:encoded>
	</item>
</channel>
</rss>
