© David Both 2018
David BothThe Linux Philosophy for SysAdminshttps://doi.org/10.1007/978-1-4842-3730-4_5

5. Everything Is a File

David Both1 
(1)
Raleigh, North Carolina, USA
 
This is one of the most important concepts that makes Linux especially flexible and powerful: Everything is a file. That is, everything can be the source of a data stream, the target of a data stream, or in many cases both. In this chapter you will explore what “everything is a file” really means and learn to use that to your advantage as a SysAdmin.

The whole point with “everything is a file” is … the fact that you can use common tools to operate on different things.

—Linus Torvalds in an email

What Is a File?

Here is a trick question for you. Which of the following are files? ...

Get The Linux Philosophy for SysAdmins: And Everyone Who Wants To Be One 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.