From owner-freebsd-questions@freebsd.org Sat Oct 22 16:01:16 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 AE1FBC1C49B for ; Sat, 22 Oct 2016 16:01:16 +0000 (UTC) (envelope-from amvandemore@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 77F92FB2 for ; Sat, 22 Oct 2016 16:01:16 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-it0-x22c.google.com with SMTP id f129so9459980itc.1 for ; Sat, 22 Oct 2016 09:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q2zoF+tvC/buukgrma/g+PWNF1CB7tJqpoOJ5bPEXcI=; b=mnczIzKAZHM+CMohf/VVnjLlp4qm0ZLMdEP7EGZYPWOn1BhMtYiG4Y0CT/3cc831wb E/fbUILkk4+J/N4h+qxbB4BbkMn5ebdPHh3v6LiPzaHadp/0gXsGhQyf+zr2sL4l/y7/ bSUA0252ZLktHbK6FkL7cC1ibsLmv9CE9nKalWyWVpkO5NpXhbGtv0bchKqhHJKxCnmV BTftFDmkaXF/DH9QUUaefkPeJGR3sCU/3hdQ3idX6bxOwnl36UQwLlgFuxoYlfWWcI4+ 5v9hQvwrR2A8EWauBYZxCUFbjqnP7NQrRy68Z46ANvpmWHGOke4YY2L8kquek2aV8yvg 80mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q2zoF+tvC/buukgrma/g+PWNF1CB7tJqpoOJ5bPEXcI=; b=JZopixcqd3/TmAOw6RBGyH39gbg+Q/xnMxQ7F5UlgVzAbSdIvUvhBGDwHb+LmsaF2+ jL0cbqw1WhcEYy8qkKTshNgsk+YmMJR+ScWeabSGWPTlQoV1741K8eb89PFUAd8n2bYv 2WqO11X5vhOc3zwr5GvW0QeTfDv+v3wS68rS6toLBndfgiEBGHi5S8gc/+QjZ6kCdcXx d9eqGNOswRzAhcGMqeu9iKtcOypi9bWqn7yYqFbuD/DG7CiL/MIDhDu8eAuvd6YiRjGf CF3IWJrrH8hmLkkcCxOwZ6OHOXus6woefBDvOXRAHWWA00qosf1mK3skPP5ZEiYKizYU m2UA== X-Gm-Message-State: AA6/9Rn8zMIFiYZIix2qMMwIOWvCp62p8pgCwpAbVV47U8XgZVwwWCxjAujNJRIQcJyno9TEDh4pR3GGfa//GQ== X-Received: by 10.202.45.17 with SMTP id t17mr15277831oit.74.1477152075969; Sat, 22 Oct 2016 09:01:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.39.129 with HTTP; Sat, 22 Oct 2016 09:01:15 -0700 (PDT) In-Reply-To: <580B7A86.9050209@gmail.com> References: <580A4A2F.4020902@gmail.com> <580B7A86.9050209@gmail.com> From: Adam Vande More Date: Sat, 22 Oct 2016 11:01:15 -0500 Message-ID: Subject: Re: console command history To: Ernie Luzar Cc: Freebsd Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sat, 22 Oct 2016 16:01:16 -0000 > > Thank you. You hit the mail on the head. The original posted problem has > nothing to do with those statements referenced in previous posts in this > thread. > > The real problem is the shutdown, halt, and reboot commands just kill the > system which includes the csh shell that the command was issued from > denning the running shell the opportunity to save the current console > command history so it can be restored when the root logs in after the > system is started again. > FYI, reboot(1) should not be used to reboot from multiuser mode, use shutdown(1) for that. Something like "history -S" would need to be part of the prompt, or a specific option in tcsh to commit history at each new prompt. Linux/Bash seems to do the sensible thing, perhaps it would be good to determine how it's done there. -- Adam