Linking Files: Hard Link vs. Soft Link?

Nils Kassube kassube at gmx.net
Tue Apr 14 07:17:50 UTC 2009


Amichai Rotman wrote:
> I understand that if I hard link a file, it is 
> actually the same file, and if I delete the so called link I actually
> delete the real file - might be dangerous... 

If you use a hard link to an existing file you now have two directory 
entries for the same file, i.e. if you delete one of the entries you 
still have the other one. Therefore it is not a real problem to use 
hard links.


Nils




More information about the ubuntu-users mailing list