From owner-freebsd-questions@freebsd.org Fri Oct 21 23:53:57 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 85228C1CEA8 for ; Fri, 21 Oct 2016 23:53:57 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 44ACE869 for ; Fri, 21 Oct 2016 23:53:57 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id f129so3342412itc.1 for ; Fri, 21 Oct 2016 16:53:57 -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=g8pZ1bxx2VnlVwgeASfY2VsvSMRb4Nt8/Ftg6qdDi4A=; b=CnaTSok/NBQ4RwKSbGmWjxdIRvpnP+kf2DB+Vt88AzTaBF/3G/S3a6tZ5zGLizKJfd ub/QyAVJqTbjK3f63ITn1QOwnz8EVxeXtnkGw+kO/5Ul7vhlqIlvvv/8aoNrKwEBLMEd sgs7IkWltOjBKhnCWLchuGyWce6ittO64pC1yodqRAQo2V8RnJtc1Y4jQUmN9V+YzHZ6 2SNGh5nk3C28+aa3KTBxpqREteUyNeJ9nYo55JMZ559tB2fU0XKliUTKO7wDbtlwuhmB fmJufVDFRUsG4HMtjIi3TsC/S1fBMKZH4mtow5gS4Rqmocrap3Pbr9ZBUL9voKZji2Od hYcg== 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=g8pZ1bxx2VnlVwgeASfY2VsvSMRb4Nt8/Ftg6qdDi4A=; b=ZqOzixZrhFpAwaITaywGw/d79uIkWyWO/+mF9KUQVOx1WF4GWsVFMQoHw/Gz84Daop MXreDO6PWsTRQ5dFOYUgia61IgYrhFG1fzk0ciGdMLj2SF4pnFdMVSB2BhSgPM/HFxkd 00sMs/t77WjS/nsD+Jd6rrCy48OYkrAu339i0dbGrRWK9+shTDjhHlSNxEv0s49zCNux BrmN8rteVNkPxRy2QmV51Yf7WWfn6UmTpU8EFoYj8w8Ns0wfzPhp9uLeBzgw4RJ/8wIO XTpr7o0VNK3jXBrtufseqvpB1g5DBSPuhGaO/0t2ZwXvWx+QFtBxQ8TsGQQSBOxKs2Ik C8ig== X-Gm-Message-State: AA6/9Rm3W0oXDwwYyEUTXhvY8xatxWAdTf5PTGVp/AUuSvw/Ab/4/dIDDiFvoSa93JxAZLEZGcvI94ZRPw3pBg== X-Received: by 10.202.59.212 with SMTP id i203mr13326886oia.1.1477094036711; Fri, 21 Oct 2016 16:53:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.39.129 with HTTP; Fri, 21 Oct 2016 16:53:56 -0700 (PDT) In-Reply-To: <580A4A2F.4020902@gmail.com> References: <580A4A2F.4020902@gmail.com> From: Adam Vande More Date: Fri, 21 Oct 2016 18:53:56 -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: Fri, 21 Oct 2016 23:53:57 -0000 On Fri, Oct 21, 2016 at 12:02 PM, 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. > This has been the default behavior for quite awhile. If you logout, the history will be saved. Whatever entails "shutdown -r now" doesn't gracefully logout the shell. Doing something like "# exit && shutdown -r now" would be a workaround. -- Adam