From owner-freebsd-questions@freebsd.org Thu Mar 30 00:45:19 2017 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 D5F06D23E74 for ; Thu, 30 Mar 2017 00:45:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A9688D2 for ; Thu, 30 Mar 2017 00:45:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Thu, 30 Mar 2017 02:45:10 +0200 Received: from r56.edvax.de (port-92-195-127-117.dynamic.qsc.de [92.195.127.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id AE6C43CC42; Thu, 30 Mar 2017 02:45:09 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v2U0j8sv002058; Thu, 30 Mar 2017 02:45:08 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 30 Mar 2017 02:45:08 +0200 From: Polytropon To: Ernie Luzar Cc: FreeBSD questions Subject: Re: command history & multiple root vt sessions Message-Id: <20170330024508.63a563c9.freebsd@edvax.de> In-Reply-To: <58DBD448.6020805@gmail.com> References: <58DBD448.6020805@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with F36EF6A355B X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2039 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: Thu, 30 Mar 2017 00:45:19 -0000 On Wed, 29 Mar 2017 11:35:36 -0400, Ernie Luzar wrote: > I am at the keyboard that is wired to the computer. > Using the Fx keys I logon as root in 3 different vt sessions. > In each one issuing the "history" command shows a different set of > commands unique to that vt session. This is normal behavior. > > How can this be? There is only a single /root directory on the host > system. All 3 vt sessions should be using the same .history file. The shell usually reads history from memory, so the different VT sessions use different histories while running. > If I issue the "exit" command from the vt3 it should have updated the > /root/.history file with its session history content. I had the same problem with user shell sessions inside X terminals. This is what I added to /etc/csh.cshrc for global effect: set history = 200000 set savehist = (200000 merge) Maybe this also works for you? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...