Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2016 18:53:56 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        Freebsd Questions <FreeBSD-questions@freebsd.org>
Subject:   Re: console command history
Message-ID:  <CA%2BtpaK2W5chboZSgGt3%2BrEkjhtaRpMd_1_=ymi=R81U3omtQWw@mail.gmail.com>
In-Reply-To: <580A4A2F.4020902@gmail.com>
References:  <580A4A2F.4020902@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 21, 2016 at 12:02 PM, Ernie Luzar <luzar722@gmail.com> wrote:

> Hello List;
>
> After installing from scratch using cdrom.iso the console command history
> is blank for user root. As I issue commands from the root command line
> these commands get added to the history as one would expect. After
> rebooting the system, root's history contains the commands I issued before
> I rebooted the system, and any newly issued commands are added to the
> history as one would expect.
>
> Now here is the problem I am seeing. After any reboots the history
> contains only the issued commands from the first boot after the install
> from scratch. The history does not contain the commands issued before the
> last reboot.
>

This has been the default behavior for quite awhile.  If you logout, the
history will be saved.  Whatever entails "shutdown -r now" doesn't
gracefully logout the shell.

Doing something like "# exit && shutdown -r now" would be a workaround.


-- 
Adam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK2W5chboZSgGt3%2BrEkjhtaRpMd_1_=ymi=R81U3omtQWw>