Every Linux user has experienced this annoying thing: you begin typing a long and boring command, then realise you should have executed another one before. How to save the first one to execute it later?
Example
You begin typing
mycommand -a -F --conf /very/long/path --and /another/one /input/file.txt
But before pressing "Enter", you realise you should've done cp f.txt /input/file.txt
at first.
So, you're stuck with your command, and if you don't press Enter you won't be able to have it back using your bash history.
What's the best way to handle this?