13,420
edits
Changes
→Linking Files
A '''Hard link''' is a reference to the physical data on a file system.
An '''advantage ''' with hard links is that if one hard link remains (even if original file has been removed), the data in that hard linked file is NOT lost. Also, hard links will automatically change when a change to that original file or hard links occur since they share the same '''i-node number''' and in the eyes of the Unix/Linux OS, they are the same files. '''Disadvantages''' of hard links are that they take-up extra space,<br>you cannot hard link directory files, and you cannot hard link files from other Unix/Linux servers<br>(since the inode number may already be used by the other Unix/Linux server).
''Examples:''