From owner-freebsd-questions@freebsd.org Fri Oct 21 21:06:13 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 9EC44C1C6E4 for ; Fri, 21 Oct 2016 21:06:13 +0000 (UTC) (envelope-from mfv@bway.net) Received: from smtp2.bway.net (smtp2.bway.net [216.220.96.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CEC3929 for ; Fri, 21 Oct 2016 21:06:13 +0000 (UTC) (envelope-from mfv@bway.net) Received: from gecko4 (host-216-220-115-164.dsl.bway.net [216.220.115.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp2.bway.net (Postfix) with ESMTPSA id 6831B95873; Fri, 21 Oct 2016 17:06:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bway.net; s=mail; t=1477083965; bh=WDBp57BwMxRKLRL1oozLwE9+rHzv3hGNjRlLGSgqf6s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Reply-To; b=grZDBDlpMMcMqV7yNuiB1/D6F2+TraBJLU5dnuJBfjRmRtUmfLpJUjaDz4+RPtkzU QQqZreLRQH2Hjys1epEhRQW0QvY2eYIwKtLtRe+qO7ZFsgM5jb+LgoodcRR4tPKVLs pAiQDyBpci/xC6TPjFk/M3e9Qe6kpMUPF4wDIQJo= Date: Fri, 21 Oct 2016 17:06:05 -0400 From: mfv To: Ernie Luzar Cc: jd1008 , freebsd-questions@freebsd.org Subject: Re: console command history Message-ID: <20161021170605.3e76cf91@gecko4> In-Reply-To: <580A74E6.5030303@gmail.com> References: <580A4A2F.4020902@gmail.com> <580A4BA7.6090700@gmail.com> <580A4CCA.8080301@gmail.com> <20161021150625.35f0eea3@gecko4> <580A6DE9.50604@gmail.com> <580A74E6.5030303@gmail.com> Reply-To: mfv@bway.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 21:06:13 -0000 > On Fri, 2016-10-21 at 16:04 Ernie Luzar wrote: > >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. > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" Hello Ernie, As my setup is only a single user host I placed both of these commands in /etc/csh.cshrc and then disabled .cshrc in both /root and ~/. Thus, there is only one configuration file for both root and my home directory. Have used this setup for many years without incident. I am using r10.3 amd64. Cheers ... Marek