1 vote

Bash command to copy before cursor and paste after?

You can use ctrl+k and ctrl+y: # initial command cp /etc/prog/dir1/myconfig.yml█ # put cursor before where you want to copy cp█ /etc/prog/dir1/myconfig.yml # press ctrl+k cp█ # press ctrl+y twice ...
Mohammad Rahimi's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible