How are directory structures stored in UNIX filesystem?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3
--
Chapters
00:00 How Are Directory Structures Stored In Unix Filesystem?
00:37 Accepted Answer Score 14
01:35 Thank you
--
Full question
https://superuser.com/questions/520107/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #unix #filesystems
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3
--
Chapters
00:00 How Are Directory Structures Stored In Unix Filesystem?
00:37 Accepted Answer Score 14
01:35 Thank you
--
Full question
https://superuser.com/questions/520107/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #unix #filesystems
#avk47
ACCEPTED ANSWER
Score 14
See file system internals which outlines in a rather simple way the internals of a typical Unix filesystem.
Most Unix filesystems contain
- A boot block
- A superblock (disk geometry, partition layout, inode count, etc)
- Inode blocks
- Data blocks
Modern filesystems contain additional structures.
One of the things in the superblock is the location of the inodes for the root directory.
A directory is a specially formatted file. As with all ordinary files, it has data blocks.
You can see this in The Linux Documentation Project: Filesystem
You can use debugfs
to explore these structures.