View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-24-2013, 07:49 AM   #1
Registered: Jul 2011
Posts: 69

Rep: Reputation: Disabled
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 :

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 ?
Old 03-24-2013, 12:49 PM   #2
John VV
LQ Muse
Registered: Aug 2005
Posts: 14,898

Rep: Reputation: Disabled
do you find them after you log out and back in again ?
during the same terminal or user session ?
Old 03-28-2013, 02:55 AM   #3
Registered: Jul 2011
Posts: 69

Original Poster
Rep: Reputation: Disabled
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. !!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i erase my history file on logout yawe_frek Linux - General 7 11-25-2006 12:45 AM
Recent File History: how do you erase it? Yoozer Linux - Newbie 2 09-16-2005 05:34 PM
Erase shell history mikeshn Linux - General 1 04-25-2004 08:28 AM
Konqueror Browser: History, how to erase it? vous Linux - Software 7 04-10-2004 02:57 PM
How to erase the login history (RedHat)? yuzuohong Linux - General 3 08-31-2002 05:10 AM

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration