Windows symlinks – symbolic link vs hard link
Windows symbolic links:
- symbolic link
- hard link
Let's imagine we have a rack with shelves. Every shelf has a place where you can put a box (or boxes) and a label underneath.
Symbolic Link is like thread connected to the shelf: we can illustrate its way as path like: house/room5/shelf2/shelf_content
Hard Link is like thread connected to the very box: house/room5/shelf2/this_certain_box
Symbolic link leads to content of shelf, so when we move the box to other shelf, link will still be pointing to the old location
Hard link is pointing to the box, so when box is moved to Shelf1, link is still pointing to the box, even though its location has changed. In other words moving a file to other location in filesystem doesn't break a hard link but breaks symbolic link