When entering a command which spans multiple lines in Bash, how do I edit previous lines? I'm a Linux Mint (Lisa) user using GNOME Terminal.
For example, let's say I type:
$ echo "foo bar
> baz
>
And then when I'm about to type the third line of the command, suddenly realize I want "foo" and "bar" to be on separate lines. How would I reposition my cursor between "foo" and "bar" such that I could press enter and put them on separate lines?
(It's not easy like you might think. Up arrow doesn't work, neither does Ctrl-P. So please, try it out before posting! Thanks!)