I found this article interesting -
http://lifehacker.com/5698494/quickly-fix-command-line-mistakes-with-the--symbol
use ^incorrectword^correctword - will execute the previous command with the incorrectword replaced by the correct word
Ex:
lp -a |grep a --- Error
^lp^ls --- Correct the typo above
No comments:
Post a Comment