<?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: Re-Run the Last Command While Replacing Syntax or Typos</title>
	<atom:link href="http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/feed/" rel="self" type="application/rss+xml" />
	<link>http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/</link>
	<description>News, tips, software, reviews, and more for Mac OS X, iPhone, iPad</description>
	<lastBuildDate>Fri, 24 May 2013 05:38:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Bill</title>
		<link>http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/#comment-398542</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Thu, 14 Jun 2012 15:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=31040#comment-398542</guid>
		<description>If you get the History Number (i.e. type history) you can change the contents of any previous command by inserting the command number after the first !.  As an example if the history command shows that command number 815 is &#039;ls -aelF&#039; and you want to get rid of the e you can type - !815:gs/e//</description>
		<content:encoded><![CDATA[<p>If you get the History Number (i.e. type history) you can change the contents of any previous command by inserting the command number after the first !.  As an example if the history command shows that command number 815 is &#8216;ls -aelF&#8217; and you want to get rid of the e you can type &#8211; !815:gs/e//</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drdrapp</title>
		<link>http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/#comment-398413</link>
		<dc:creator>drdrapp</dc:creator>
		<pubDate>Thu, 14 Jun 2012 10:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=31040#comment-398413</guid>
		<description>and ctrl+r is search through command history.</description>
		<content:encoded><![CDATA[<p>and ctrl+r is search through command history.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drdrapp</title>
		<link>http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/#comment-398412</link>
		<dc:creator>drdrapp</dc:creator>
		<pubDate>Thu, 14 Jun 2012 09:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=31040#comment-398412</guid>
		<description>You can use ctrl+a to navigate to the beginning of the line and ctrl+e to the end.</description>
		<content:encoded><![CDATA[<p>You can use ctrl+a to navigate to the beginning of the line and ctrl+e to the end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madra</title>
		<link>http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/#comment-398407</link>
		<dc:creator>madra</dc:creator>
		<pubDate>Thu, 14 Jun 2012 09:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=31040#comment-398407</guid>
		<description>I knew about using the &quot;up arrow&quot; to scroll back through previous commands before, but your &quot;sudo !!&quot; tip is worth the entrance fee alone. 

When I think of the number of times I&#039;ve typed a command, forgetting to &quot;sudo&quot; it first and then had to use &quot;up arrow&quot; to show previous command, then tappy-tappy-tappy on &quot;left arrow&quot; to get the cursor back to the start of the line, to put &quot;sudo&quot; in!

Thanks.</description>
		<content:encoded><![CDATA[<p>I knew about using the &#8220;up arrow&#8221; to scroll back through previous commands before, but your &#8220;sudo !!&#8221; tip is worth the entrance fee alone. </p>
<p>When I think of the number of times I&#8217;ve typed a command, forgetting to &#8220;sudo&#8221; it first and then had to use &#8220;up arrow&#8221; to show previous command, then tappy-tappy-tappy on &#8220;left arrow&#8221; to get the cursor back to the start of the line, to put &#8220;sudo&#8221; in!</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep</title>
		<link>http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/#comment-398245</link>
		<dc:creator>Sandeep</dc:creator>
		<pubDate>Thu, 14 Jun 2012 00:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=31040#comment-398245</guid>
		<description>I did not know this, this is a good tip too!</description>
		<content:encoded><![CDATA[<p>I did not know this, this is a good tip too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://osxdaily.com/2012/06/13/re-run-last-command-replacing-syntax-or-typo/#comment-398238</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 14 Jun 2012 00:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=31040#comment-398238</guid>
		<description>You can also use the ^ to replace typos:

$ la bla
-bash: la: command not found
$ ^la^ls</description>
		<content:encoded><![CDATA[<p>You can also use the ^ to replace typos:</p>
<p>$ la bla<br />
-bash: la: command not found<br />
$ ^la^ls</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 (User agent is rejected)
Database Caching using disk: basic
Object Caching 244/245 objects using disk: basic
Content Delivery Network via cdn.osxdaily.com

Served from: osxdaily.com @ 2013-05-24 03:33:59 -->