From owner-freebsd-questions Tue Jan 29 2:14:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f35.law11.hotmail.com [64.4.17.35]) by hub.freebsd.org (Postfix) with ESMTP id 2616B37B404 for ; Tue, 29 Jan 2002 02:14:33 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 29 Jan 2002 02:14:33 -0800 Received: from 68.6.89.248 by lw11fd.law11.hotmail.msn.com with HTTP; Tue, 29 Jan 2002 10:14:32 GMT X-Originating-IP: [68.6.89.248] From: "Charles Burns" To: amiroot@yahoo.com, questions@freebsd.org Subject: Re: Question about cat command Date: Tue, 29 Jan 2002 03:14:32 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Jan 2002 10:14:33.0054 (UTC) FILETIME=[BF0307E0:01C1A8AD] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Likely it is piping the filesystem data for the directory to stdout, which would be unreadable to humans. Technically, that would be doing what it is supposed to do, much like if you `cat` a binary file. It may be better to make it cat all the files in that directory, but that wouldn't really be very useful as you can do that by adding a few other commands, and it could take a very long time if it were executed for, say, '/usr'. >hihi all, > >I'm using FreeBSD4.4 on a P5-166 machine with 64MB >Ram. I found that I can "cat" a directory and it will >list garbage. Is it a bug or I made anything wrong??? > >Rgds, >AMI > > >_________________________________________________________ >Do you Yahoo!? >SMS Messenger 手機電腦互動新趨勢 >Instant messaging between PC and mobile >http://hk.mobile.yahoo.com/sms_msgr.html > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message