Chapter 8. Filesystems and Directory Walks

In this chapter

  • 8.1 Mounting and Unmounting Filesystems page 228

  • 8.2 Files for Filesystem Administration page 238

  • 8.3 Retrieving Per-Filesystem Information page 244

  • 8.4 Moving Around in the File Hierarchy page 256

  • 8.5 Walking a File Tree: GNU du page 269

  • 8.6 Changing the Root Directory: chroot() page 276

  • 8.7 Summary page 277

  • Exercises page 278

This chapter completes the discussion of Linux (and Unix) filesystems and directories. We first describe how a disk partition containing a filesystem is added to (and removed from) the logical filesystem namespace, such that in general a user need neither know nor care where a file is physically located, along with the APIs for working with filesystems.

We then describe how ...

Get Linux® Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.