[cs631apue] problem about hard link

yluo4 yluo4 at stevens.edu
Wed Sep 19 18:09:13 EDT 2012


On Tue, 18 Sep 2012 22:21:25 -0400, Jan Schaumann wrote:
> yluo4 <yluo4 at stevens.edu> wrote:
>
>>      Does hard link mean that different names point to the same 
>> file?
>
> Correct.
>
>> But when I create a hard link 'name2' for a file 'name1' and change 
>> the
>> contents of 'name2', the contents of 'name1' don't change.
>
> They should - if you create the hard link correctly.
>
> How did you try to do this?
>
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs631apue

I first type the command 'ln name1 name2', then 'emacs name2' to change 
the contents.  when I 'more name1', the contents of name1 don't change.
                                                                         
                                         -yulong


More information about the cs631apue mailing list