Prevent Duplicates in Bash History

As you may have noticed, bash keeps a history. If you open your terminal and push the up arrow, you’ll see the last command you used. This fills up with duplicates. This is how you ensure it doesn’t keep duplicates.

It’s pretty easy. Just open your terminal and enter:

[code]echo ‘export HISTCONTROL=ignoreboth:erasedups’ >> ~/.bashrc[/code]

After that, bash should no longer keep duplicates of previously entered commands.

See? Linux is pretty simple.




Linux History: A Reminder!

I’ve nearly finished Wiley’s 10th Edition of the Linux Bible and it’s a wonderful book. In it, way back near the start, there’s this gem – and it really tells us how far Linux has come.

Some histories of Linux begin with the following message entitled “What would you like to
see most in minix?” posted by Linus Torvalds to the comp.os.minix newsgroup on August
25, 1991, at
https://groups.google.com/forum/#!msg/comp.os.minix/dlNtH7RRrGA/SwRavCzVE7gJ

Linus Benedict Torvalds

Hello everybody out there using minix –
I’m doing a (free) operating system (just a hobby, won’t be big and professional
like gnu) for 386(486) AT clones. This has been brewing since april, and is starting
to get ready. I’d like any feedback on things people like/dislike in minix, as my OS
resembles it somewhat (same physical layout of the file-system (due to practical
reasons, among other things). . .Any suggestions are welcome, but I won’t promise
I’ll implement them 🙂

Linus (torvalds@[redacted].fi)

PS. Yes — it’s free of any minix code, and it has a multi-threaded fs. It is NOT
protable[sic] (uses 386 task switching etc), and it probably never will support
anything other than AT-harddisks, as that’s all I have :-(.

Anyone reading this site will not need elaboration. Man, how far has Linux come? How far will it go? Will there someday be a small project that takes off and supplants Linucus Rex?