Shell/Terminating a Partial Command

From Coder Merlin

Terminating a Partial Command[edit]

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


HintIcon.png
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



CoderMerlin™ proudly recommends:
HintIcon.png

Your purchase via these links helps keep  Coder Merlin™ 's orbuculum ablaze. As an Amazon Associate we earn from qualifying purchases. Thank you for your support!


Designed with pride in Silicon Valley, CA, USA