You can hit Control-C to abandon the command. The problem with Control-C is that what you have entered already is lost: the line won't go to your command history.
A neat trick is to comment the line out. First, hit Control-A to go to the start of the line, and then enter # (the "pound sign"). This essentially makes the entire line a comment line. The line will not be executed, but it does go to the command history.
When you are ready to execute the command, just go back in the command history (via manual scrolling or search), remove the #, and execute the command.

0 comments:
Post a Comment