Skip to main content


Dumb shell question: Is there a magic readline/bash/shell shortcut that allows me to "stash & clear" a command I've partially written so I can run something else, and then continue later?

E.g. when I'm writing a lengthy `cp` command and midway I realize I have yet to mkdir the dest dir.

EDIT: Ctrl-U, then Ctrl-Y seems to be the way.

This entry was edited (1 week ago)