Bash command to copy before cursor and paste after?
25
votes
6
answers
3325
views
I am not sure how to word this, but I often I find myself typing commands like this:
cp /etc/prog/dir1/myconfig.yml /etc/prog/dir1/myconfig.yml.bak
I usually just type out the path twice (with tab completion) or I'll copy and paste the path with the cursor. Is there some bashfoo that makes this easier to type?
Asked by user1028270
(1104 rep)
Oct 12, 2016, 03:17 PM
Last activity: Apr 16, 2024, 11:48 PM
Last activity: Apr 16, 2024, 11:48 PM