Get Started
Linux Directory Structure

Linux Directory Structure

The Linux directory layout is useful to know when working with the controller's files over SSH or SFTP. Linux differs from Windows as follows.

ItemLinuxWindows
Root directoryAll files and directories sit in one hierarchy under a single root, /.Each drive (C:\, D:\) has its own root.
Path separator/ (e.g. /home/user/file.txt)\ (e.g. C:\Users\user\file.txt)
DrivesMounted as directories, appearing under /mnt, /media, and similar.Identified by letters.
DirectoryContents
/The top of the file system. Data is normally not stored here directly.
/binShort for binary; holds basic commands and programs.
/bootFiles needed for booting, such as the kernel. Raspberry Pi OS keeps its config.txt in /boot/firmware.
/devShort for device; holds device files for disks, audio, input devices, serial ports, and other hardware.
/etcConfiguration files for the system and packages.
/homePer-user directories (/home/username), similar to C:\Users\username on Windows.
/rootThe home directory of the administrator (root) account.
/runA memory-based temporary file system (tmpfs) for runtime data created after boot, such as PIDs, sockets, and lock files.
/sbinShort for system binary; holds executables for system administration.
/tmpTemporary files; accessible to all users.
/usrRead-only data such as shared executables, libraries, and documentation.
/varShort for variable; holds data that keeps changing, such as log files.