home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / misc / 4892 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.8 KB

  1. Path: sparky!uunet!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!aun.uninett.no!Steinar.Haug
  2. From: Steinar.Haug@delab.sintef.no (Steinar Haug)
  3. Newsgroups: comp.unix.misc
  4. Subject: Re: Diff between sym and hard links?
  5. Message-ID: <STEINAR.HAUG.93Jan9160031@delab.sintef.no>
  6. Date: 9 Jan 93 15:00:31 GMT
  7. References: <mcampbel.726585766@eola.cs.ucf.edu>
  8. Sender: news@aun.uninett.no
  9. Distribution: comp
  10. Organization: SINTEF DELAB, Trondheim, Norway.
  11. Lines: 26
  12. In-Reply-To: mcampbel@cs.ucf.edu's message of Sat, 9 Jan 1993 13:22:46 GMT
  13. Nntp-Posting-Host: tosca.er.sintef.no
  14.  
  15. > Anyone?  What *is* the difference between symbolic and hard links in a
  16. > unix fs?  
  17.  
  18. Hmm, how about reading the manual pages? Okay, I'll save you the trouble.
  19.  
  20. - A symlink contains the (relative or absolute) pathname of a file. The file
  21. can be in another file system. If the file is moved, the symlink is no longer
  22. valid, because the file has a new pathname.
  23.  
  24. - A hard link contains the *inode* number of a file, and thus is only valid
  25. within the file system where the file is located. If the file is moved within
  26. this file system, the hard link remains valid.
  27.  
  28. A further point to note is that there is no way to tell the difference between
  29. the "original" name of a file, and any further hard links to that file. They
  30. are all simply links to the same file. When the link count for a file goes to
  31. zero, the operating system removes the file.
  32.  
  33. There are people who don't like symlinks, are there are versions of Unix which
  34. don't implement symlinks. Personally, I consider it *essential* for efficient
  35. system administration of large installations to have symlinks available.
  36.  
  37. Steinar Haug, system/networks administrator
  38. SINTEF DELAB, University of Trondheim, NORWAY
  39. Email: Steinar.Haug@delab.sintef.no, 
  40.     sthaug@idt.unit.no, steinar@tosca.er.sintef.no
  41.