how to tell "ls" output date in digital

Pala, Santosh Santosh_Pala at KEANE.COM
Thu Sep 9 13:39:31 UTC 2010

Hi Andrew,

The ls command with -E switch will give the required output. 

From: owner-freebsd-questions at [owner-freebsd-questions at] on behalf of andrew clarke [mail at]
Sent: Thursday, September 09, 2010 9:24 PM
To: Guojun Jin
Cc: questions at
Subject: Re: how to tell "ls" output date in digital

On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (gjin at 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 at blizzard [~]ls -ld /
drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 /

freebsd-questions at mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

Disclaimer:  This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is confidential, legally privileged or otherwise exempt from disclosure under applicable law. If you are not the intended recipient(s) or have received this message in error, you are instructed to immediately notify the sender by return email and required to delete this message from your computer system. This communication does not form any contractual obligation on behalf of the sender, the sender's employer or such employer's parent company, affiliates or subsidiaries.

More information about the freebsd-questions mailing list