Chapter 5: Working with File I/O and Filesystem Operations
File I/O is an important part of system programming since most programs must read or write data to and from files. Doing file I/O also requires the developer to know a thing or two about the filesystem.
Mastering file I/O and filesystem operations will make you not only a better programmer but also a better system administrator.
In this chapter, we will learn about the Linux filesystem and inodes. We will also learn how to read and write files on the system, using both streams and file descriptors. We will also look at system calls to create and delete files and change file permissions and ownership. At the end of the chapter, we will learn how to fetch information about files.
In this ...
Get Linux System Programming Techniques 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.