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).
A faster way would be to hit Alt-# (does the same thing with just one key combo).