command stack in buffer

Odd iodine at
Tue Jan 5 10:58:47 UTC 2010

Michael Welle wrote:
> vijay shanker <vijay.shad at> writes:
>> I hope many of you must be aware of this.
>> When i use a terminal to execute my commands. Some times i need to execute
>> same command multiple times. So, if i want to choose a previously executed
>> command, It makes me very tired to choose from history of command.
>> So , instead of choosing I prefer to go and write it again. But i was
>> thinking if there existing any thing that can remove duplicates form
>> the command history?
> it depends on the shell you're using. Search the according man page for
> dup or duplicate. In csh for instance you can set the shell variable
> histdup to erase.

You can be certain that most Ubuntu users are running the default
BASH. If they are running anything else, they are not ordinary users,
and will know how to remove duplicates from the command history
too. :)

Anyway, the trick is to set HISTIGNORE="&" in the ~/.bashrc file.


More information about the ubuntu-users mailing list