Just to summarise all the answers: Clean up the line: You can use Ctrl + U to clear up to the beginning. Clean up the line: Ctrl + E Ctrl + U to wipe the current line in the terminal. Clean up the line: Ctrl + A Ctrl + K to wipe the current line in the terminal. Cancel the current command/line: Ctrl + C .