Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 14:18:56 +1030
From:      Greg Lehey <grog@lemis.com>
To:        "Albert D. Cahalan" <acahalan@cs.uml.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FreeBSD vs linux
Message-ID:  <20010124141856.Q37060@wantadilla.lemis.com>
In-Reply-To: <200101230159.f0N1x9518493@saturn.cs.uml.edu>; from acahalan@cs.uml.edu on Mon, Jan 22, 2001 at 08:59:09PM -0500
References:  <200101230159.f0N1x9518493@saturn.cs.uml.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010124141856.Q37060>