Member-only story

Linux — Filesystems Introduction, Part One

Tony
7 min readMar 8, 2024

Linux Filesystem

In this article, our focus is files and filesystems. The UNIX philosophy of “everything is a file” continues to hold true in Linux. Although it’s not an absolute rule, most resources in Linux are treated as files. These files can encompass a wide range of content, from the text of a school assignment to the humorous GIF you download (from a source you trust, of course).

Linux also extends this notion to encompass other elements, including devices and pseudo-devices. For instance, consider the command echo “Hello modern Linux users” > /dev/pts/0, which displays the message “Hello modern Linux users” on the screen. While you might not typically think of these resources as files, you can interact with them using the same methods and tools familiar from dealing with regular files. As an example, the kernel exposes specific runtime information for a process, such as its PID (Process ID) or the binary used to execute the process.

Basic Concepts

Let’s first delve into more precise definitions of essential terms:

Drive

--

--

Tony
Tony

Responses (1)