Date: Tue, 29 Jan 2002 05:10:08 -0600 From: "Mike Meyer" <mwm-dated-1012734609.d80ff5@mired.org> To: =?big5?q?AMI=20Root?= <amiroot@yahoo.com> Cc: questions@freebsd.org Subject: Re: Question about cat command Message-ID: <15446.33552.750918.86134@guru.mired.org> In-Reply-To: <3960754@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
=?big5?q?AMI=20Root?= <amiroot@yahoo.com> types: > 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??? This has come up on the FreeBSD lists at least once before. Google the archives if you want to hear a lot of different opinions. It's not a bug. Directories are binary files, and need to be viewed with something that either understands directories - like ls - or with something that handles arbitrary binary files - like od or "cat -v". <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15446.33552.750918.86134>