Compare hard links and soft links.
IntermediateConceptFilesystem Hierarchy, Inodes & Links
Answer
| Hard link | Soft link | |
|---|---|---|
| Points to | inode | path |
| Cross filesystems | No | Yes |
| Link to directory | No (except . and ..) |
Yes |
| Target deleted | Data survives | Link breaks |
| Own inode | No | Yes |
In production we use symlinks for release switching (current -> releases/v42) because the swap is atomic with ln -sfn.
More on Filesystem Hierarchy, Inodes & Links
Explain the purpose of the main top-level directories in the FHS.BeginnerWhat is the "/usr merge"?IntermediateWhat are /proc and /sys?BeginnerWhat is an inode? What does it store and what does it NOT store?BeginnerA disk shows free space but you get "No space left on device". Why?IntermediateWhat is a hard link?Beginner