LESSON 1.14 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Files, inodes and permissions
Follow a path to an inode, and watch the kernel decide who may read it.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 1.14 · INODE BAYINODE 1304 · 3 LOOKUPS
01
Stage 1 of 6 · Walk the path
The filesystem looks up one directory at a time. The name notes.txt maps to inode 1304.
Explain it simply
A path is a list of names. The kernel starts at the root directory, inode 2, and looks up one name at a time. Each directory is a table that pairs a name with an inode number. The last name, notes.txt, gives inode 1304.
The path /srv/team/notes.txt goes from inode 2 to inode 1296, then 1301, then 1304.
name, empty bitinode number, permission bituser, file dataallowed, outputdenied, freed
Toy: 3 directories · 1 file · 4 users · numbers are short stand-ins
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each directory turns one name into one inode number.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.