This question already has an answer here:
- How do I delete my commands quickly? 8 answers
Is there a shortcut to clear the command line when typing in it instead of keeping backspace pressed for a few long seconds?
I ask because I regularly use the Tab key to automatically fill in file names when using bash commands in the Terminal. For example instead of typing
cd this_is_a_long_file_name, I will type
cd th<Tab>. But then I realize I have filled in the wrong command/filename and I have to hold down backspace to clear everything and repeat the process.