imported>Anton-krom |
|||
Line 1: | Line 1: | ||
If you begin a command in error or change your mind about issuing a command, you can use the {{SpecialKey|CONTROL|C}} key sequence to cancel what you've typed so far and continue with a new command prompt. | If you begin a command in error or change your mind about issuing a command, you can use the {{SpecialKey|CONTROL|C}} key sequence to cancel what you've typed so far and continue with a new command prompt. | ||
Latest revision as of 16:19, 12 December 2021
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
If you begin a command in error or change your mind about issuing a command, you can use the CONTROL-C key sequence to cancel what you've typed so far and continue with a new command prompt.
Try it now:
john-williams@codermerlin:~$ echo iThoughtIKnewWhatIWasDoingBut CONTROL-C
Helpful Hint
If you began issuing a command but need to do something else in the shell before actually issuing it, an alternative to the above is to temporarily store what you've typed so far, do something else, then return to the original command. You can do that with:
CONTROL-U | Cut backwards |
CONTROL-Y | Yank the original text back |