console command history
Adam Vande More
amvandemore at gmail.com
Fri Oct 21 23:53:57 UTC 2016
On Fri, Oct 21, 2016 at 12:02 PM, Ernie Luzar <luzar722 at 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.
More information about the freebsd-questions