LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to erase duplicates of commands from the command history ? (https://www.linuxquestions.org/questions/linux-software-2/how-to-erase-duplicates-of-commands-from-the-command-history-4175455363/)

techie_san778 03-24-2013 07:49 AM

How to erase duplicates of commands from the command history ?
 
Hello Friends,

This is the configuration that i have done in my bash profile to erase the duplicate linux commands :

HISTCONROL=ignoredups:erasedups
export HISTCONTROL
Still, i am finding duplicates of commands (some are appearing 2 times, some are appearing 3 times and so on....)

Can anyone suggest me how to erase / prevent duplicates from the command history ?

John VV 03-24-2013 12:49 PM

do you find them after you log out and back in again ?
or
during the same terminal or user session ?

techie_san778 03-28-2013 02:55 AM

Actually, to be sorry at the 1st place, there is a typo in the command that i have written
in the .bash_profile. Now, i have rectified that error and its working fine. !!


All times are GMT -5. The time now is 03:41 AM.