-
Press Ctrl–U to delete everything before the cursor. The deleted command will be stored into a buffer. Press Ctrl–Y to paste the deleted command.
(Optional: Press End or Ctrl–E to jump to the end of the input first.)
-
Alternatively, press Ctrl–C to abort what you’re typing.