The Fuck – Correct your previous console command
Cool idea.  For those systems where you don't have the option of adding a 3rd party tool, it's probably worth knowing some of the standard bash shortcuts.  The easy to remember ones are:<p><pre><code>  !^ - the first argument from the previous command
  !$ - the last argument from the previous command
  !* - all of the arguments from the previous command
  !! - the entire previous command
</code></pre>
For example:<p><pre><code>  $ apt-get install foo
  # Crap
  $ sudo !!</code></pre>