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

Taught in

References