LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-24-2013, 07:49 AM   #1
techie_san778
Member
 
Registered: Jul 2011
Posts: 65

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 :

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

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

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. !!
 
  


Reply


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 02:38 PM.

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