everything is a file
The Unix design idea that many kinds of objects, such as devices, processes and kernel settings, are reached through the same open, read and write operations as files.
In more detail
It does not mean everything is stored on disk. /proc, /sys and /dev present live kernel state and devices as paths, so ordinary tools like cat can inspect them. Treat them as interfaces: ask who owns the view, whether it persists and what operations it supports before writing.
Related terms
- /proc filesystem — A virtual folder the Linux kernel fills with live information about processes and the system.
- sysfs — A virtual filesystem mounted at /sys where the kernel exposes devices, drivers and their settings as files.
- /dev — The directory holding device nodes: special files through which programs reach disks, terminals and other devices.
- device node — A special file, usually under /dev, that stands for a device so programs can open, read and write it like a file.
- file descriptor — A small number the operating system gives a process for each open file, socket or pipe, used in every later read or write.
- Unix — A family of operating systems from the 1970s whose design ideas Linux and macOS both follow.
Taught in
- Everything Is A File: proc, sys And dev — Linux Fundamentals & Systems Administration