For example, I have formed a long complicated command that will improve the world and lower an entropy in the Universe. But then (huh!) I see that I forgot to make a dir required. I want to store my command, run mkdir and then restore my command.
Assume doing it in a raw tty.
Is there a way to do so?