From owner-freebsd-questions@FreeBSD.ORG Wed Sep 8 23:21:01 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 672621065697 for ; Wed, 8 Sep 2010 23:21:01 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout025.mac.com (asmtpout025.mac.com [17.148.16.100]) by mx1.freebsd.org (Postfix) with ESMTP id 4D2668FC1E for ; Wed, 8 Sep 2010 23:20:59 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp025.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L8G00E88BIAG470@asmtp025.mac.com> for questions@freebsd.org; Wed, 08 Sep 2010 16:20:35 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1009080178 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-09-08_10:2010-09-08, 2010-09-08, 1970-01-01 signatures=0 From: Chuck Swiger In-reply-to: Date: Wed, 08 Sep 2010 16:20:34 -0700 Message-id: <3CF8B516-812C-4309-88BD-A1F346939A47@mac.com> References: To: Guojun Jin X-Mailer: Apple Mail (2.1081) Cc: Eitan Adler , 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: Wed, 08 Sep 2010 23:21:01 -0000 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