[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Hardlinks



In article <[🔎] pan.2005.03.03.22.53.04.442290@yahoo.com>,
Tong  <mlist4suntong@yahoo.com> wrote:
>My understanding is that hard-links are not reliable. If I modify any of
>the hard links, most probably, the linkage would be broken. Is that so? 

That's not because of the hard link, that's because of the application
that you are using to modify the file.

If an editor creates a temporary copy of a file to work on, then
when you save the file simply moves/renames the temporary file over
the existing file, in the case of a hardlink, the link is broken.

Some of the editors can be told to "rewrite the file in-place"
instead. That will keep the link.

Mike.



Reply to: