Re: bash_history
Thanx for your trie to help me. I checked the HIST* variables and all was
ok. Then i made this discovery : By typing exit for a normal logout the
bashhistory will be saved. But if i use <Strg>+<Alt>+<Del> for a reboot or
if i use the command shutdown -h now, the bashhistory will not be saved.
This was not so than i used RadHat and SuSE, which i tested bevor i get the
meaning that Debian is the right thing for me. Is there any possibility to
tell the bash that she shall save the history by using <Strg>+<Alt>+<Del>
and shutdown -h now?
Matthias
----- Original Message -----
From: Erik Steffl <steffl@bigfoot.com>
To: <debian-user@lists.debian.org>
Sent: Sunday, October 22, 2000 12:16 AM
Subject: 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
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org <
/dev/null
>
Reply to: