From owner-freebsd-questions@FreeBSD.ORG Thu Sep 9 11:51:07 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AAD210656BE for ; Thu, 9 Sep 2010 11:51:07 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from extmail-03.people.net.au (extmail-03.people.net.au [202.154.122.99]) by mx1.freebsd.org (Postfix) with SMTP id A81198FC29 for ; Thu, 9 Sep 2010 11:51:06 +0000 (UTC) Received: (qmail 1447 invoked from network); 9 Sep 2010 11:24:25 -0000 Received: from unknown (HELO extmail-01.people.net.au) (202.154.123.98) by extmail-03.people.net.au with SMTP; 9 Sep 2010 11:24:25 -0000 Received: (qmail 28616 invoked from network); 9 Sep 2010 11:24:25 -0000 Received: from unknown (HELO smtp.phoenix) (218.215.185.136) by extmail-01.people.net.au with SMTP; 9 Sep 2010 11:24:25 -0000 Received: by smtp.phoenix (Postfix, from userid 1001) id BF29017104; Thu, 9 Sep 2010 21:24:21 +1000 (EST) Date: Thu, 9 Sep 2010 21:24:21 +1000 From: andrew clarke To: Guojun Jin Message-ID: <20100909112421.GA31640@ozzmosis.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: questions@freebsd.org Subject: Re: how to tell "ls" output date in digital 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: Thu, 09 Sep 2010 11:51:07 -0000 On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (gjin@ubicom.com) wrote: > I remember that "ls" can output date in digital like following format > before > > -rw-r--r-- 1 user Domain Users 54323 2010-09-08 14:12 crash.log > > Instead of Sep 08 2010 or Sep 08 11:07 > > But I cannot find any option or ENV to do this under FreeBSD (6.X-R). > > Does anyone have knowledge about this possibility? In FreeBSD 7.3 I use /usr/local/bin/gls installed from the sysutils/coreutils port, and a tcsh alias for ls: ls gls --time-style=long-iso --color=auto 21:23 ozzmosis@blizzard [~]ls -ld / drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 / Regards Andrew