Linux File System Structure

Reading Time: 5 minutes

linux-filesystem

Linux vs Windows File System Structure

If you worked with Windows before, you most likely saw the C:\ local disk. Probably the second local disk named D:\, E:\, F:\, G:\ or something similar and they are represented as Disk Drive. When it comes to Linux, disk partitions are kept in /dev/sd* path(will come to this shortly). Generally, C:\ disk is meant to be used for system files, applications, tools and so on. Users are tend to use other local disks(D:\, E:\…) to install games, store media thus, for personal files. A:\ and B:\ disks are allocated for floppy disks.

In Linux however, file system structure is different. It is more like a logical structure, rather than a physical one and the structure layout is similar to a Tree Data Structure. In Windows, disks can be divided into two or more and have their own roots. “\” character in C:\ points the root of C: disk. In Linux however, there is only one root node which is “/”(Notice the forward slash, in Windows it is “\”). Unlike Windows where can be many roots, there is only one single node where all files be bind to. Every directory spans from the root node. Deepening the tree structure.

Continue reading