1

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.

2

Open .bashrc using your favorite editor, for example:

gedit ~/.bashrc

Then find:

HISTCONTROL=ignoreboth

Change it to:

#HISTCONTROL=ignoreboth

And save the file.

Now duplicated commands and commands started with a space will be saved in your bash history too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.