Date: Fri, 21 Oct 2016 16:04:54 -0400 From: Ernie Luzar <luzar722@gmail.com> To: jd1008 <jd1008@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: console command history Message-ID: <580A74E6.5030303@gmail.com> In-Reply-To: <580A6DE9.50604@gmail.com> References: <580A4A2F.4020902@gmail.com> <580A4BA7.6090700@gmail.com> <580A4CCA.8080301@gmail.com> <20161021150625.35f0eea3@gecko4> <580A6DE9.50604@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
jd1008 wrote: > > > On 10/21/2016 01:06 PM, mfv via freebsd-questions wrote: >>> On Fri, 2016-10-21 at 13:13 Ernie Luzar <luzar722@gmail.com> wrote: >>> >>> jd1008 wrote: >>>> What is your root's login shell? >>>> >>>> On 10/21/2016 11:02 AM, Ernie Luzar 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. >>>>> >>>>> How can I configure the console command history for user root to be >>>>> a rolling list of issued console commands that contain the history >>>>> of the issued commands between 2 reboots, so after a reboot the >>>>> history contains commands that were issued prior to the last reboot? >>>>> >>>>> Running 11.0 with sc console driver because vt does not have >>>>> copy-paste ability. This problem is also in 7.x 8.x 9.x and 10.x >>>>> series and now I need a resolution for this annoying tick. >>>>> >>> I use the system default csh >>> >> Hello, >> >> Checkout the section "History substitution" in csh(1). >> >> It is possible to save and/or delete the history using various >> settings. I found the following to be useful setting in the csh >> configuration file: >> >> set history = 1000 >> set savehist = (1000 merge) >> >> Cheers ... >> >> Marek >> > +1 > Well, since I like to keep much longer history, I set it to something > rather large - like 999999 :) > Those 2 statements are in /root/.cshrc as part of the system install.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?580A74E6.5030303>