Re: bash_history
I think you can turn saving of the history on/off, see man bash:
...
HISTSIZE
The number of commands to remember in the command
history (see HISTORY below). The default value is
500.
HISTFILE
The name of the file in which command history is
saved (see HISTORY below). The default value is
ß/.bash_history. If unset, the command history is
not saved when an interactive shell exits.
HISTFILESIZE
The maximum number of lines contained in the
history file. When this variable is assigned a
value, the history file is truncated, if necessary,
to contain no more than that number of lines. The
default value is 500. The history file is also
truncated to this size after writing it when an
interactive shell exits.
...
is overwritten. If HISTFILE is unset, or if the history
file is unwritable, the history is not saved. After
saving the history, the history file is truncated to
contain no more than HISTFILESIZE lines. If HISTFILESIZE
is not set, no truncation is performed.
...
erik
Matthias Mann wrote:
>
> Yes this is a typo! Do you have any answere of my questions?
>
> ----- Original Message -----
> From: Moritz Schulte <tux@gmx.li>
> To: <debian-user@lists.debian.org>
> Sent: Friday, October 20, 2000 10:30 PM
> Subject: Re: bash_history
>
> "Matthias Mann" <Matman@gmx.li> writes:
>
> > Is there a bug in bash (Debian 2.2.0 potato)? When i go as root into my
> > system the bash don´t save anything to /root/bash_history.
>
> Is this a typo? Bash's history should be in ~/.bash_history.
>
> moritz
> --
> /* Moritz Schulte <moritz@hp9001.fh-bielefeld.de>
> * http://hp9001.fh-bielefeld.de/~moritz/
> * PGP-Key available, encrypted Mail is welcome.
> */
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org <
> /dev/null
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: