How to repeat currently typed in parameter on Bash console?
34
votes
9
answers
8467
views
I was just typing something along the lines of:
mv foo/bar/poit/zoid/narf.txt
Suddenly I realized, damn, I have to type large parts of that parameter again:
mv foo/bar/poit/zoid/narf.txt foo/bar/poit/zoid/troz.txt
Even with tab completion, that's quite a pain. I know I can copy-paste the parameter by mouse-selecting the text and middleclicking but that is not good enough. I want to keep my hands on the keyboard.
Is there a way to copy-paste the current parameter of the line using the keyboard?
Asked by k0pernikus
(16521 rep)
Jun 6, 2012, 09:47 AM
Last activity: Apr 12, 2023, 10:29 AM
Last activity: Apr 12, 2023, 10:29 AM