Operating systems notes

Files & Directories

The named, persistent byte-stream you have been reading and writing all along, and the machinery hiding behind the name. Every section is a drawn page beside a clear written explanation, about 17 minutes in all.

  • Chapter 28 of 37
  • About 17 minutes
  • 8 sections

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

The first drawn page of Files & Directories: The file: a named, persistent stream of bytes
The chapter's first page: The file: a named, persistent stream of bytes

In this chapter

  • The file: a named, persistent stream of bytes
  • File operations & how an fd becomes bytes on disk
  • File metadata & the inode
  • Directories & path resolution
  • Hard links vs symbolic links
  • Permissions & ownership
  • Mounting & the unified namespace
  • Files for engineers

Next chapters

Read the whole chapter

Sign in and the chapter opens with every drawn page, and all 38 operating systems chapters beside it.

DSA comes with the all labs plan and every ChaiCode batch.