how to tell "ls" output date in digital

Guojun Jin gjin at
Wed Sep 8 23:55:39 UTC 2010

6.4-R seems been released after that date. Maybe not.
Just checked, ls in 8.1-R has "-D" option. Now moving forward.


-----Original Message-----
From: Eitan Adler [mailto:lists at] 
Sent: Wednesday, September 08, 2010 4:23 PM
To: Chuck Swiger
Cc: Guojun Jin; questions at
Subject: Re: how to tell "ls" output date in digital

On Wed, Sep 8, 2010 at 7:20 PM, Chuck Swiger <cswiger at> wrote:
> Hi--
> On Sep 8, 2010, at 4:14 PM, Guojun Jin wrote:
>> No D option in ls:
>> [162] bsd-ms: ls -lD "+%F %H:%M"
>> ls: illegal option -- D
>> usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]

% svn log -r 177907
r177907 | grog | 2008-04-03 23:57:46 -0400 (Thu, 03 Apr 2008) | 2 lines

Add -D option to specify exact format of date and time output with ls -l.


I just noticed your using 6.x. I'm not sure what revision 6.x was but
maybe it is too old to have this option?

Eitan Adler

More information about the freebsd-questions mailing list