01 / 08
What a file really is, is not its name
Until now you have thought of a file as "contents with a name on them". It divides up a little more finely than that.
the name (memo.txt) | points atthe record of the contents (the inode) | points atthe actual dataThe inode in the middle is the lead part. It has a number, and it holds the size, the permissions, the owner and where the data sits.
The name is no more than a tag pointing at an inode.
~ $ ls -li origin.txt 4 -rw-r--r-- 1 learner learner 6 origin.txt ^ the inode numberls -i shows the number, and stat -c %i reads it too.
And you may put as many tags as you like on one inode. That is a hard link.