I want to keep my duplicates and all commands started with a space. How do I do that? I have no ideas what to do. Last time that I messed with bash nothing worked at all afterwards.
.bashrc using your favorite editor, for example:
Change it to:
And save the file.
Now duplicated commands and commands started with a space will be saved in your bash history too.