Linux Directory Structure: Everything Is a File

Linux Directory Structure: Everything Is a File

On Linux the whole machine is one tree of files, starting at a single top folder called / (the root). Your app, its config, its logs, even the CPU.

This is the one idea that makes Linux stop feeling arbitrary. Your app is a file. Its config is a file. Its crash log is a file. Even the CPU is a file. Below is a real-feeling server. Poke it.

On Windows or Mac, settings hide in registries and panels. On Linux, the whole machine is one tree of files starting at / . If you can read a file, you can read the machine.

This is why AI is so good at fixing servers: everything it needs to see is readable text at a known address. You just have to point it there.

Recommended articles