From owner-freebsd-questions@freebsd.org Fri Oct 21 20:04:31 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A13FC1C831 for ; Fri, 21 Oct 2016 20:04:31 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 272023AB for ; Fri, 21 Oct 2016 20:04:31 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x232.google.com with SMTP id 66so4808540itl.1 for ; Fri, 21 Oct 2016 13:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=WnUeFoY7EJotTl3fN8Mafv/QECvXq9Ko1Wkt7aeICis=; b=DOXHCP4ksViAyY3KMWlXdrmtwPfpMtlS7sSAhBNFiOzmvO+Ssws76udLyY3bC8+ck0 FAWfI1/KwxGwn3BFXZFk5maMEAHExHrpXSwh7a1SO7MsqgEG1hEE6oh90loKlxF38nfu tp3PHy6BWt4cyxRL/0erZdO4Xdtt1AZDHCgdkOs/Kpu4d4va8yNH/exLWh9AO/NTsh1w P65V5QZwtnOguGP/ucqh909seDr71T2KakXXtwoVvNIkTi2q7LYzCSQkC+EApNdpndag 3/+6C+wQ4plgacCD5T1nr+fFSNLTw7+Shv+Rtgnrt8lwRBasfyyMi/vNhwbbL803mmT1 tZAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=WnUeFoY7EJotTl3fN8Mafv/QECvXq9Ko1Wkt7aeICis=; b=PpIdGMftR6uzuPsKf88aFNjphb9QM6Payx2eMGtK66+aVPlRI+3tzjwlj6kCHy6Eye wFXVtDxDRIpVDMHYdpgbmRvjmt+PqaM8p/RUywl9MnJDY2drtruvt6e+tPmt4QfTF3vh tc6hU2lf8CrFiVsNHbAGpkrqFx6q31bPwTBGmhBiH1kFm6D5UOdcYQXZtJH/9v7rINRW CzuclkP573lC8INfww+8jBRqByQomQbVXratEII9p1+9Cix/Tvo5zIxoshyOqsViXjLL c2SUVlrgpeFgLSCHXiUUhru/Xq9K4b5oj/0uvviTR+Igd2NjRH5DwOgvU9F5vrt6QAou SPHQ== X-Gm-Message-State: ABUngvfsujUnEvplAH4jcyTT/C/6grD46l+ErOotymo8vW2vZgmXu1GWksSLaZfvL3Q3ig== X-Received: by 10.107.200.10 with SMTP id y10mr2814709iof.73.1477080269760; Fri, 21 Oct 2016 13:04:29 -0700 (PDT) Received: from [10.0.10.3] (cpe-24-165-204-240.neo.res.rr.com. [24.165.204.240]) by smtp.googlemail.com with ESMTPSA id b6sm2606609iob.4.2016.10.21.13.04.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Oct 2016 13:04:29 -0700 (PDT) Message-ID: <580A74E6.5030303@gmail.com> Date: Fri, 21 Oct 2016 16:04:54 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: jd1008 CC: freebsd-questions@freebsd.org Subject: Re: console command history References: <580A4A2F.4020902@gmail.com> <580A4BA7.6090700@gmail.com> <580A4CCA.8080301@gmail.com> <20161021150625.35f0eea3@gecko4> <580A6DE9.50604@gmail.com> In-Reply-To: <580A6DE9.50604@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2016 20:04:31 -0000 jd1008 wrote: > > > On 10/21/2016 01:06 PM, mfv via freebsd-questions wrote: >>> On Fri, 2016-10-21 at 13:13 Ernie Luzar 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.