how to tell "ls" output date in digital

Chuck Swiger cswiger at mac.com
Wed Sep 8 23:21:01 UTC 2010


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 ...]

I suspect that's a GNU extention to their version of ls.  Try installing /usr/ports/sysutils/coreutils and see whether /usr/local/bin/ls supports this....

Regards,
-- 
-Chuck



More information about the freebsd-questions mailing list