How can I delete the same command in the command history and make the database show each command only once? Thanks...
If all you care about is the commands and not the order they were typed in, you could do this:
sort .bash_history | uniq
Anything more complicated that preserves the sequence of events would require a shell script that weeds out those commands that have previously occured.