[X-Unix] Utility "ln" makes a copy instead of hard link?

Jerry Krinock jerry at ieee.org
Fri Apr 7 12:39:13 PDT 2006


on 06/04/07 10:29, Wing Wong at wingedpower at gmail.com wrote:

> Can you provide an ls of the directory? ls -ali
> This should list the inodes for each file, as well as other pertinent data.

Wing Wong,

I went through your experiment and I see that indeed it works as expected.
I repeated your experiment, and it works for me too.

The reason my experiment does not work is because instead of using the
redirection operator ">" to change the file, I am using TextEdit.  After I
change and then save the file with TextEdit, it has a different inode than
its linked twin.

Why would it do that?

Thanks for the tip on "-i" option; that makes this a lot easier to
troubleshoot.

Jerry




More information about the X-Unix mailing list