Soft Link vs Hard Link
|
Symbolic/Soft Link |
Hard Link |
|---|---|
|
|
|
can cross the file system |
can’t cross the file system |
|
allows you to link between directories |
can’t link directories |
|
has different inode number and file permissions than original file |
has the same inode number and file permissions of original file |
|
permissions will not be updated |
permissions will be updated if we change the permissions of source file |
|
has only the path of the original file, not the contents |
has the actual contents of original file, so that you still can view the contents, even if the original file moved or removed |
Difference Between Hardlink and Copy
if you create a hard link to a file and change the content of either of the files, the change will be be seen on both