<?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: 15 Examples To Master Linux Command Line History</title>
	<atom:link href="http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 11 Mar 2010 05:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Disable MySQL History &#8211; Clear ~/.mysql_history and MYSQL_HISTFILE</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-29546</link>
		<dc:creator>Disable MySQL History &#8211; Clear ~/.mysql_history and MYSQL_HISTFILE</dc:creator>
		<pubDate>Fri, 15 Jan 2010 06:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-29546</guid>
		<description>[...] Bash history feature stores the Unix commands typed in the command line in the ~/.bash_history file. Similar to bash [...]</description>
		<content:encoded><![CDATA[<p>[...] Bash history feature stores the Unix commands typed in the command line in the ~/.bash_history file. Similar to bash [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daddy, I found it!, 15 Awesome Linux Find Command Examples (Part2)</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-27698</link>
		<dc:creator>Daddy, I found it!, 15 Awesome Linux Find Command Examples (Part2)</dc:creator>
		<pubDate>Tue, 29 Dec 2009 15:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-27698</guid>
		<description>[...] Unix Command Line History With 15 [...]</description>
		<content:encoded><![CDATA[<p>[...] Unix Command Line History With 15 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Beginner&#8217;s Guide to The Geek Stuff &#8211; A Guided Tour</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-27690</link>
		<dc:creator>The Beginner&#8217;s Guide to The Geek Stuff &#8211; A Guided Tour</dc:creator>
		<pubDate>Tue, 29 Dec 2009 15:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-27690</guid>
		<description>[...] 15 Examples To Master Linux Command Line History [...]</description>
		<content:encoded><![CDATA[<p>[...] 15 Examples To Master Linux Command Line History [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Hearn</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-20663</link>
		<dc:creator>Keith Hearn</dc:creator>
		<pubDate>Tue, 27 Oct 2009 22:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-20663</guid>
		<description>This is a great resource.

Another useful one is !* which give you all of the arguments from the previous command:
$ ls foo bar bing
foo  bar  bing
$ echo !*
echo foo bar bing
foo bar bing

You can also get the Nth argument with !:N
$ ls foo bar bing
foo  bar  bing
$ echo !:2
echo bar
bar

You can combine this with matching the most recent line that begins with a particular string:
$ echo !ls:1
echo foo
foo

$ echo !ls:*
echo foo bar bing
foo bar bing

$ echo !ls:0
echo ls
ls

Ok, the last one seems kinda silly, but it could be useful if you have several commands that start with the same string and you want to know which one you did most recently.

$ foocreate
$ foostart
$ foostop
$ foostart

$ echo !foo:0
echo foostart
foostart


   Keith</description>
		<content:encoded><![CDATA[<p>This is a great resource.</p>
<p>Another useful one is !* which give you all of the arguments from the previous command:<br />
$ ls foo bar bing<br />
foo  bar  bing<br />
$ echo !*<br />
echo foo bar bing<br />
foo bar bing</p>
<p>You can also get the Nth argument with !:N<br />
$ ls foo bar bing<br />
foo  bar  bing<br />
$ echo !:2<br />
echo bar<br />
bar</p>
<p>You can combine this with matching the most recent line that begins with a particular string:<br />
$ echo !ls:1<br />
echo foo<br />
foo</p>
<p>$ echo !ls:*<br />
echo foo bar bing<br />
foo bar bing</p>
<p>$ echo !ls:0<br />
echo ls<br />
ls</p>
<p>Ok, the last one seems kinda silly, but it could be useful if you have several commands that start with the same string and you want to know which one you did most recently.</p>
<p>$ foocreate<br />
$ foostart<br />
$ foostop<br />
$ foostart</p>
<p>$ echo !foo:0<br />
echo foostart<br />
foostart</p>
<p>   Keith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Kusnier</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-19347</link>
		<dc:creator>Sebastian Kusnier</dc:creator>
		<pubDate>Tue, 13 Oct 2009 07:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-19347</guid>
		<description>Other way to get the last arg of the previous commmand is:

ESC-_

ls /etc/passwd
cat[ESC-_] -&gt; cat /etc/passwd</description>
		<content:encoded><![CDATA[<p>Other way to get the last arg of the previous commmand is:</p>
<p>ESC-_</p>
<p>ls /etc/passwd<br />
cat[ESC-_] -&gt; cat /etc/passwd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kusse.info &#8211; Kusnier Sebastian &#187; Bash: Master Command Line History</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-19245</link>
		<dc:creator>kusse.info &#8211; Kusnier Sebastian &#187; Bash: Master Command Line History</dc:creator>
		<pubDate>Sun, 11 Oct 2009 19:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-19245</guid>
		<description>[...] Articles: 15 Examples To Master Linux Command Line History More text is [...]</description>
		<content:encoded><![CDATA[<p>[...] Articles: 15 Examples To Master Linux Command Line History More text is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Command Line Tricks: How To Identify Date and Time of a Unix Command Execution</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-18327</link>
		<dc:creator>Command Line Tricks: How To Identify Date and Time of a Unix Command Execution</dc:creator>
		<pubDate>Fri, 02 Oct 2009 06:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-18327</guid>
		<description>[...] Note:  For a full list of history command hacks, refer to: Mastering Linux command line history. [...]</description>
		<content:encoded><![CDATA[<p>[...] Note:  For a full list of history command hacks, refer to: Mastering Linux command line history. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Copy a command string from the command line - The UNIX and Linux Forums</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-17674</link>
		<dc:creator>Copy a command string from the command line - The UNIX and Linux Forums</dc:creator>
		<pubDate>Wed, 23 Sep 2009 02:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-17674</guid>
		<description>[...] 1. Use your mouse.  2. Most of the shells supports history, press UP arrow and get the previous command.  3. If you are using bash, you may find this helpful. 15 Examples To Master Linux Command Line History [...]</description>
		<content:encoded><![CDATA[<p>[...] 1. Use your mouse.  2. Most of the shells supports history, press UP arrow and get the previous command.  3. If you are using bash, you may find this helpful. 15 Examples To Master Linux Command Line History [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mommy, I found it! &#8212; 15 Practical Linux Find Command Examples</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-14640</link>
		<dc:creator>Mommy, I found it! &#8212; 15 Practical Linux Find Command Examples</dc:creator>
		<pubDate>Sat, 15 Aug 2009 18:01:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-14640</guid>
		<description>[...] 15 Examples To Master Linux Command Line History [...]</description>
		<content:encoded><![CDATA[<p>[...] 15 Examples To Master Linux Command Line History [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linux Crontab: 15 Awesome Cron Job Examples</title>
		<link>http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/comment-page-1/#comment-14635</link>
		<dc:creator>Linux Crontab: 15 Awesome Cron Job Examples</dc:creator>
		<pubDate>Sat, 15 Aug 2009 17:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=130#comment-14635</guid>
		<description>[...] 15 Examples To Master Linux Command Line History [...]</description>
		<content:encoded><![CDATA[<p>[...] 15 Examples To Master Linux Command Line History [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
