Re: Clearing history

"Taylor, ForrestX" <[email protected]> Fri, 03 Sep 2004 08:57:11 -0700
Newsgroups gmane.linux.redhat.release.valhalla
Message-ID <[email protected]>
On Fri, 2004-09-03 at 06:11, Harry Hambi wrote:
> Hi All,
> Can someone tell me how to clear my history file its getting rather
> large. I've tried history -c no joy…I'me using redhat 5.2.Just want to
> clear it, if  I do the following edit my .bashrc and add
> 
> HISTFILESIZE=0
> HISTSIZE=0
> i will not be able to use the up-arrow to retrieve you’re my last
> command.

Wow--5.2!  I haven't seen that for a while.  Do you have a .bash_history
in your home directory?  You should be able to remove it.  What about
setting HISTFILESIZE and HISTSIZE to 100 or 1000, so some reasonable
size?

Forrest