it happend once before and it is very annoying: why is this or that command not stored in history?
echo $HISTCONTROL ignoreboth # ignoreboth means: ## ignorespace Any command whose first character is a space is not saved to the history list. ## ignoredups If the command you just entered is identical to the immediately preceding history entry, it is not added again. # solution: modify variable in /etc/bash.bashrc su - root echo 'HISTCONTROL="ignoredups"' >> /etc/bash.bashrc
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!