On Monday 16 December 2002 02:45 pm, Ole Kofoed Hansen wrote:
This is because with a hardlink you are creating another reference to the same file, and this reference does not care if the original file gets renamed or moved or even deleted.
To beat this dead horse just a few more times..... ;-) With a hard link in place, the original file WILL NOT be deleted because as long as there is there is at least one link pointing to it the file is not deleted. It will not appear where it was originally located if you do rm upon its original name, but the hardlink will still be there and pointing to the exact same inode. Remember this when you are thinking of a way to prevent someone from deleting some critical file. A hardlink in another directory will prevent a delete, (but not necessarily a corruption of contents.) -- _________________________________________________ John Andersen / Juneau Alaska