I understand I can type \
enter at the end of a bash
command line to continue that command in another line. But how can I split a prompt command line — that has already been fully typed — into two?
For example, how can I break this line right before then
without having to cut the remainder off and type it all over again?
$ if true; then ls; fi
fc
command as well - it is available in nearly all shells. – jw013 Jun 18 '13 at 18:47