From owner-freebsd-questions Tue Jan 23 19:49:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 49F1737B6A1 for ; Tue, 23 Jan 2001 19:48:59 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id E0B636AB73; Wed, 24 Jan 2001 14:18:56 +1030 (CST) Date: Wed, 24 Jan 2001 14:18:56 +1030 From: Greg Lehey To: "Albert D. Cahalan" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD vs linux Message-ID: <20010124141856.Q37060@wantadilla.lemis.com> References: <200101230159.f0N1x9518493@saturn.cs.uml.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101230159.f0N1x9518493@saturn.cs.uml.edu>; from acahalan@cs.uml.edu on Mon, Jan 22, 2001 at 08:59:09PM -0500 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 22 January 2001 at 20:59:09 -0500, Albert D. Cahalan wrote: > > David Kelly writes: >> A small thing but last time I sat at a Linux keyboard "dir" did >> the DOS thing, by default. > > ROTFL!!! > > How did you discover this? Perhaps you typed "dir" at the prompt? > Fortunately, the command was there when you needed it. :-) > > I'm sure this command is really detrimental to the system. Heh. I don't think that the command is detrimental. It's in the nature of UNIX to invent different names for things, and if you're used to it, that's fine. I've just checked on a RedHat 7.0 box and found that yes, it's there. The way it's done, though, is less than aesthetic: it's a separate program, /usr/bin/dir: [grog@capellorosso /boot]$ ls -il /usr/bin/dir /bin/ls 286989 -rwxr-xr-x 1 root root 43740 Aug 25 23:54 /bin/ls 79940 -rwxr-xr-x 1 root root 43740 Aug 25 23:54 /usr/bin/dir [grog@capellorosso /boot]$ cmp /usr/bin/dir /bin/ls /usr/bin/dir /bin/ls differ: char 42009, line 134 This is, in fact, the only different byte. In other words, it's so close to being ls that it's not funny, but it's not quite the same thing. So why didn't they do a hard link rather than make people go looking for the difference? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message