From owner-freebsd-questions@freebsd.org Fri Oct 21 19:35:08 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 76E67C1C1F3 for ; Fri, 21 Oct 2016 19:35:08 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-pf0-x234.google.com (mail-pf0-x234.google.com [IPv6:2607:f8b0:400e:c00::234]) (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 46BC321E for ; Fri, 21 Oct 2016 19:35:08 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by mail-pf0-x234.google.com with SMTP id r16so61891608pfg.1 for ; Fri, 21 Oct 2016 12:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=sypKTmRP7Bk1sc0GiYPIomtGtEfubbYzwu6jZKClwrg=; b=QhnKwj/KPSddeqvHvEgqg8/5vlaeVNyECPcVzEwoJH1EtJ/pnbUH8WmEoQdZ4u99kP Pud8x+ZWrf4Ep57Zlw8wptxlYieVx1ZCNuh8dZhnI0XD2Q+bM3pzN1zkScyMylqIVhgT UOutDksSW8se2zvrQ6sGv4CI32P9hzrocRixNQh8hhZc1i/8UobEpPE9DfHsDXi2smJG aevoki8JUsNYmkKoXvD9WExol/Zuj81NB4M12ftA7BIG+s/98+/W6XG0wlF03dSCN2Co G3Vu5xM7nQXt1WEtsfUuGApRmxrRo2DiRJ9GbK8nzcmB6cfq038l3YkL7pMp9r8I7BcW foYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=sypKTmRP7Bk1sc0GiYPIomtGtEfubbYzwu6jZKClwrg=; b=Fs6k4sDKUB+FB3GEuo/08yKHp62NkVzqdLGbqFVnrEX1Hy4ngRW4YemPAu6rvNwneW zh99vI5qTu3zb/2m7sncso5Kza9RjurkZtmV0VR4QGHQ5ekGpppQCM334aN5dXZ9uE8K qOLNUQiAqU+7kERHc33F+lcFlapNwLDKlNvJW3FWFMOhOsiNVmwIr2SZrN3yltDYWDwz Bk36clETwZk5bO0GRnYUQTEKMn3jN4Cj22AcF224715aD2njoO50jlLiLFSpGVFDlJs0 rDLoW1vJtkoTxw8GtzQa67AkbJXRJVw7N6Te2gTRofD/vXfs9ScjyWEz1mWfmSEIEK3I TmNg== X-Gm-Message-State: ABUngvcwxM2fY7d9+CnCNBdPgIcBi48wlCZXGIqwSrb0CAhhGW9TkhLZOYY93ewwix9l4w== X-Received: by 10.98.223.150 with SMTP id d22mr4539940pfl.2.1477078506948; Fri, 21 Oct 2016 12:35:06 -0700 (PDT) Received: from localhost.localdomain (50-243-4-3-static.hfc.comcastbusiness.net. [50.243.4.3]) by smtp.googlemail.com with ESMTPSA id l1sm7007029pfi.64.2016.10.21.12.35.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2016 12:35:06 -0700 (PDT) Subject: Re: console command history To: freebsd-questions@freebsd.org References: <580A4A2F.4020902@gmail.com> <580A4BA7.6090700@gmail.com> <580A4CCA.8080301@gmail.com> <20161021150625.35f0eea3@gecko4> From: jd1008 Message-ID: <580A6DE9.50604@gmail.com> Date: Fri, 21 Oct 2016 13:35:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <20161021150625.35f0eea3@gecko4> Content-Type: text/plain; charset=windows-1252; 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 19:35:08 -0000 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 >> _______________________________________________ >> 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, > > 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 :)