From owner-freebsd-questions@freebsd.org Wed Mar 29 15:35:35 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 7DF59D23FC8 for ; Wed, 29 Mar 2017 15:35:35 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x22c.google.com (mail-it0-x22c.google.com [IPv6:2607:f8b0:4001:c0b::22c]) (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 4777A1360 for ; Wed, 29 Mar 2017 15:35:35 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x22c.google.com with SMTP id 190so58808780itm.0 for ; Wed, 29 Mar 2017 08:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=D7K30sa/3ZrHHaEemrQ7/FjjegYqrRtLaeSAon4rkx8=; b=qr+O8E6BPGdanmrDAk1aSEx0RZZ+CzbvmHhOjXQBq/wIttz3MqkaCmT6QTvdR0C5HY K2BPUqHpRtTjNwtuTDHtIGLNW9ywYsqaIiXVMcJCr0VGcCqbqS8ceMbf96xZnb7A3ZMv R14rAF/mZvSwRQEFGgO6GsN2ZAs2zaeuXcnka6E6d7kkKJ2PwDvWFP+sFbtjvk2oOqim KBKPpiAoSytJwh0XEg6q9J4zRvf7ZYjHdFPhXGUzpFgqfn4BGTnXgB90MGoI+OR5fCjk cqCw1tiRSzFOrq+FlQDo6jCmGcK3Bc4PLm04j8EjxqfgUbOAPRbAr5GTLaZkcphBWIX7 BVJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=D7K30sa/3ZrHHaEemrQ7/FjjegYqrRtLaeSAon4rkx8=; b=G/y38pFH0K5HhUrV010nsp+HDWoG5maPKhO2sRWA5ulnquNW6qd3siAtoG1mBDe2qk v2GAgMQ94wvLFhXfrOOnTjORaB2FUi3Tvbl3xbAP3qRSN/drHDM5aLODw7TVU0bcuHXD N/A6a+UY2zXiQ+I42KQpnNfzlYidHTy3Zevk9KGuHP7kX2IXLZ6fzJ90ESaHDjyoppCU 6bOXkU9e9AhPsLXc/WAezRbM86AEv1M/hlmgw2bzuL3gQL7jW2I8/JUWd/iw9LbEpkUO 6c0ya66iH8rIEeDptS3vYRHTbvvc7GUKUIA9cr43H2QNZKGa8v90OmsQJCBsJQY/dU5l Qg+w== X-Gm-Message-State: AFeK/H0bYQpsqt9ed/3ihAgs+x2Y9COpPaN3rrubF/RQXgLqwVYUV1c50Ze4/jYLwa/jGA== X-Received: by 10.36.240.9 with SMTP id s9mr1477147ith.45.1490801734555; Wed, 29 Mar 2017 08:35:34 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-57.neo.res.rr.com. [74.141.88.57]) by smtp.googlemail.com with ESMTPSA id l198sm3480649ita.10.2017.03.29.08.35.33 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Mar 2017 08:35:34 -0700 (PDT) Message-ID: <58DBD448.6020805@gmail.com> Date: Wed, 29 Mar 2017 11:35:36 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: FreeBSD questions Subject: command history & multiple root vt sessions 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: Wed, 29 Mar 2017 15:35:35 -0000 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. If I issue the "exit" command from the vt3 it should have updated the /root/.history file with its session history content. Then doing the same thing from vt2, it should have replaced the .history file with it's session history content loosing the vt3 content. Logging back in to vt2 & vt3 and issuing the "history" command shows the same content they had when last exited. I do not understand this behavior. What am I missing here?