bash history zu klein

Thomas Baeumer tbals at ctrl-c.de
Thu Feb 12 13:47:45 CET 2015


* Florian Lohoff schrieb 12.02.2015 13:42h:
> On Wed, Feb 11, 2015 at 06:41:18PM +0100, Thomas Baeumer wrote:
> > Tach zusammen,
> > ich ärgere mich auf meine Ubuntu Desktop immer über eine zu kleine bash
> > history. Dabei habe ich in der .bashrc alle hochgedreht:
> > 
> > tbals at unrein:~$ set | grep HIST
> > HISTCONTROL=ignoreboth
> > HISTFILE=/home/tbals/.bash_history
> > HISTFILESIZE=500000
> > HISTSIZE=10000
> > 
> > aber das tut offensichtlich nicht, denn:
> > 
> > tbals at unrein:~$ history | wc -l
> > 637
> > tbals at unrein:~$ cat .bash_history | wc -l
> > 673
> > 
> > Die wächst auch an so bis etwa 2000 Zeilen und dann irgendwann ist die
> > history wieder leer. Keine Ahnung warum. Hat jemand eine Idee?
> 
> # append to the history file, don't overwrite it
> shopt -s histappend
> 
> Flo

Ja, das ist auch drin:

tbals at unrein:~$ grep -i hist .bashrc
HISTCONTROL=ignoreboth
HISTSIZE=10000
HISTFILESIZE=500000
shopt -s histappend

Es geht übrigens um ein Ubuntu 14.04 LTS, auch wenn das vermutlich
irrelevant ist.

Gruss
  Thomas



More information about the Linux mailing list