If you are halfway through typing a command but change your mind, hit Ctrl-A, add a # at the beginning to make it a comment, and press enter. You can then return to it later via command history.
A faster way would be to hit Alt-# (does the same thing with just one key combo).
Comments
If you are halfway through typing a command but change your mind, hit Ctrl-A, add a # at the beginning to make it a comment, and press enter. You can then return to it later via command history.
A faster way would be to hit Alt-# (does the same thing with just one key combo).
ctrl-u/ctrl-y is good if you only want to do that for one thing at a time.