Terminal Heroes – 3 – ^^ typo fixing
Posted by Ktoso on 02/09/2009 – 05:04
A great bash feature I just discovered is the “^blabla^bla” command (is it a “command” by the way..?) If typing stuff quickly by hand, typing mistakes (typos) happen… And it’s not really fast to fix them by using UP ARROW and then fixing the command by “hand”… A better, quicker way to do this is the ^^ I mentioned, it works like this:[ktoso@homunculus /]# cd /home/ktozoSo it’s basically a simple “replace and run” command… :-)
-bash: cd: /home/ktozo: Nie ma takiego pliku ani katalogu
[ktoso@homunculus /]# ^zo^so
cd /home/ktoso
[ktoso@homunculus ~]#


Post a reply