Sometimes the command you’ve typed into the Terminal’s command prompt is just wrong and you want to undo all the typing without deleting it. To clear the prompt, use Cntrl+U.