From owner-freebsd-questions@FreeBSD.ORG Thu Jun 7 23:33:34 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 A09E71065670 for ; Thu, 7 Jun 2012 23:33:34 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 5D9488FC19 for ; Thu, 7 Jun 2012 23:33:34 +0000 (UTC) Received: from r56.edvax.de (port-92-195-32-177.dynamic.qsc.de [92.195.32.177]) by mx01.qsc.de (Postfix) with ESMTP id ABA063CB2B; Fri, 8 Jun 2012 01:33:26 +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 q57NXP1V003289; Fri, 8 Jun 2012 01:33:25 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 8 Jun 2012 01:33:25 +0200 From: Polytropon To: Fbsd8 Message-Id: <20120608013325.d3eee7bb.freebsd@edvax.de> In-Reply-To: <4FD1360D.1060208@a1poweruser.com> References: <4FD1360D.1060208@a1poweruser.com> 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 Cc: FreeBSD Questions Subject: Re: find date of last boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 23:33:34 -0000 On Thu, 07 Jun 2012 19:15:25 -0400, Fbsd8 wrote: > dmesg command does not show date of last boot. > > Are there some other commands to find date of last boot? Check the lines in /var/log/messages. Unless you're not experiencing a newsyslog message (new log file started), the "kernel: Copyright (c) 1992-2011 The FreeBSD Project." string (first line of typical dmesg, check for your particular OS version!) indicates when the system was booted. But note that the date format is not the common sortable kind of `date "+%d.%m.%Y"`. Another idea (as already mentioned) is to subtract `uptime` from current `date`. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...