Terminal history: repeating of the same commands in terminal

Asked by Vlad Myachikov

Hello.
If I type "hello", press enter, then again type "hello" and press enter, "hello" adds to the history again. When I click Up key after it twice in older systems, "hello" is shown me only 1 time and on the second click Terminal shows me other command. Now (11.10) it shows "hello" again, which isn't good. What's wrong?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Solved by:
Nathan Heafner
Solved:
Last query:
Last reply:
Revision history for this message
Best Nathan Heafner (nathan1465-5) said :
#1
Revision history for this message
Sam_ (and-sam) said :
#2

There is ~/.bashrc where lines 8-10 say:
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

Revision history for this message
Vlad Myachikov (dddei) said :
#3

Thanks Nathan Heafner, that solved my question.