saus@media-lab.media.mit.edu (Mark Sausville) (01/03/90)
/bin/e, /bin/ed and /bin/red are all the same. I know that they're not very big. -rwxr-xr-x 3 root 36864 May 2 1989 /bin/e -rwxr-xr-x 3 root 36864 May 2 1989 /bin/ed -rwxr-xr-x 3 root 36864 May 2 1989 /bin/red But, they are on the root (small) file system. This seems bad. How about it, Ultrix team? Mark. Mark Sausville MIT Media Laboratory Computer Systems Administrator Room E15-354 617-253-0325 20 Ames Street saus@media-lab.media.mit.edu Cambridge, MA 02139
dyer@spdcc.COM (Steve Dyer) (01/03/90)
In article <SAUS.90Jan2175225@media-lab.media.mit.edu> saus@media-lab.media.mit.edu (Mark Sausville) writes: >/bin/e, /bin/ed and /bin/red are all the same. I know that they're not very big. >-rwxr-xr-x 3 root 36864 May 2 1989 /bin/e >-rwxr-xr-x 3 root 36864 May 2 1989 /bin/ed >-rwxr-xr-x 3 root 36864 May 2 1989 /bin/red >But, they are on the root (small) file system. This seems bad. They're all links to the same file, of course. No more space (other than the extra directory entries) than a single file. One of these days you'll smile when you recall asking this question. Until then, don't sweat it. -- Steve Dyer dyer@ursa-major.spdcc.com aka {ima,harvard,rayssd,linus,m2c}!spdcc!dyer dyer@arktouros.mit.edu, dyer@hstbme.mit.edu
barmar@think.com (Barry Margolin) (01/03/90)
In article <SAUS.90Jan2175225@media-lab.media.mit.edu> saus@media-lab.media.mit.edu (Mark Sausville) writes: >/bin/e, /bin/ed and /bin/red are all the same. They're not only identical, but they are actually the SAME file. They are all hard links to the same file. Use "ls -li" and you'll see that they have the same i-node number. -- Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar
lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) (01/03/90)
>/bin/e, /bin/ed and /bin/red are all the same. I know >that they're not very big. >But, they are on the root (small) file system. This seems bad. >How about it, Ultrix team? Others have already pointed out that the three files are actually one through the magic of links, etc., however nobody answered the question :-) The reason /bin/ed is on the root filesystem is to allow system administrators with fat fingers and leaking cranial cavaties to repair broken files (such as /etc/rc*, /etc/fstab, ...) that prevent machines from booting properly. If ed were in /usr, and /usr wasn't mounted, and /etc/fstab was broken, things would get ugly. [ You could use cat. I prefer /bin/emacs :-) ] [[ I will NOT tell you how MY decade started. Suffice to say I like /bin/ed right where it is! ]] [[[ I will also NOT flame about how default sizes for root filesystems are totally silly. Blame that one on Berkeley, I guess. If there was one feature I wished DEC and Sun hadn't picked up, though ... ]]] -- Lyndon Nerenberg VE6BBM / Computing Services / Athabasca University {alberta,decwrl}!atha!lyndon || lyndon@cs.AthabascaU.CA UREP: Peru in disguise?