Sometimes, I would type in some shell command in my console before I decide not to execute it. For example, I type something below in my console terminal:
sudo rm -r / # not yet committed! Thank God
Well, I realize it is kind of dumb and decide to delete before real execution.
But, I am lazy, I don't want to press the delete and wait for the backspacing cursor. The truth is this kind of situation is somehow normal to me.
I want to quickly delete the shell command with as less keyboard pressing as possible. Is there any solutions?
Thanks~