13
2
If i'm writing a long command or just typing an extensive file path, is there any that i can "reuse" it with some command shortcut?
e.g:
1.cp /home/myuser/really/big/file/here/and/there.png /home/myuser/really/big/file/here/and/there.png.bkp
Do i really have to type it all over again?
1+1 and you can go even shorter:
cp /home/myuser/really/big/file/here/and/there.{,.bkp}
– Mike Fitzpatrick – 2011-06-08T22:53:25.213@peth: Oops, yes, you're correct. So we can actually go even shorter:
cp /home/myuser/really/big/file/here/and/there{,.bkp}
:) – Mike Fitzpatrick – 2011-06-16T22:58:51.090