Squashed 'temp-repo/' content from commit 6688605

git-subtree-dir: temp-repo
git-subtree-split: 6688605ad41f49d1eccead8d29421c658cad0100
This commit is contained in:
gribse 2025-10-06 19:14:58 +02:00
commit ecdfa2f7c4
1258 changed files with 42112 additions and 0 deletions

25
Homelab/Symbolic links.md Executable file
View file

@ -0,0 +1,25 @@
---
maturity: graine
date: 2023-10-29T02:13
---
# Definition
Underneath the file system, files are represented by inodes. (Or is it multiple inodes? Not sure.)
A file in the file system is basically a link to an inode.
A hard link, then, just creates another file with a link to the same underlying inode.
When you delete a file, it removes one link to the underlying inode. The inode is only deleted (or deletable/over-writable) when all links to the inode have been deleted.
A symbolic link is a link to another name in the file system.
Once a hard link has been made the link is to the inode. Deleting, renaming, or moving the original file will not affect the hard link as it links to the underlying inode. Any changes to the data on the inode is reflected in all files that refer to that inode.
Note: Hard links are only valid within the same File System. Symbolic links can span file systems as they are simply the name of another file.
# How to
# Sources
https://stackoverflow.com/questions/185899/what-is-the-difference-between-a-symbolic-link-and-a-hard-link