From owner-freebsd-questions@FreeBSD.ORG Fri Jun 8 01:35:20 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87ED6106566B for ; Fri, 8 Jun 2012 01:35:20 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (b4.ebbed1.client.atlantech.net [209.190.235.180]) by mx1.freebsd.org (Postfix) with ESMTP id 400FE8FC0A for ; Fri, 8 Jun 2012 01:35:19 +0000 (UTC) Received: from [192.168.1.11] ([192.168.1.11]) by mail.monochrome.org (8.14.3/8.14.3) with ESMTP id q581ZJHh027194; Thu, 7 Jun 2012 21:35:19 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Thu, 7 Jun 2012 21:35:19 -0400 (EDT) From: Chris Hill To: Chris In-Reply-To: <4FD15461.6090109@makeworld.com> Message-ID: References: <4FD1360D.1060208@a1poweruser.com> <4FD15461.6090109@makeworld.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: find date of last boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2012 01:35:20 -0000 On Thu, 7 Jun 2012, Chris wrote: > On 6/7/2012 8:14 PM, Chris Hill wrote: >> On Thu, 7 Jun 2012, Fbsd8 wrote: >> >>> dmesg command does not show date of last boot. >>> >>> Are there some other commands to find date of last boot? >> >> That was fun. Google helped me with this; the crappy skillz are all mine. -snip- > Why create something that is already built in? Because I learned something by doing it. > As I mentioned previously, the last command lists when the system was > rebooted. I'm not sure it does: $ last reboot wtmp begins Fri Jun 1 08:31:38 EDT 2012 $ uptime 9:30PM up 529 days, 8:25, 4 users, load averages: 0.02, 0.18, 0.17 ...and even so, would it show a cold boot, or only a reboot? I'll credit Doug Hardie with the best solution: $ ls -l /var/run/dmesg.boot -rw-r--r-- 1 root wheel 7248 Dec 26 2010 /var/run/dmesg.boot > Keep well, You too. -- Chris Hill chris@monochrome.org ** [ Busy Expunging ]