2
What I want is to have multiple copies of the same file, and whenever I edit one of them, they all get updated. I thought Hard Links would solve my problem. So, I used the command ln
as described in Wikipedia. However, when I changed the original file, the linked one didn't change.
Did I misunderstand what hard links are supposed to do?
- If yes:
- Then what's the difference between
ln
andcp
? - How can I do what I want?
- Then what's the difference between
- If no:
- Why didn't it work?
- How can I get it to work?
I think the problem is that the editor deletes the file and creates a new one with the same name. I read that here.
– Donald Duck – 2017-09-04T14:59:31.640