Networking | Programming | Security | Linux | Computer Science | About

Raspberry Pi File Structure

The basic structure of the root filesystem on a Raspberry Pi is listed here. The directories marked with a * contain sensitive information or program data and should not be deleted or changed unless you know what you are doing:

/ This is the root filesystem.

/bin* Essential command binaries or programs are found here.

/boot* This is a place for files that help boot up the system.

/dev* Files that represent system devices are found here.

/etc* This is where many configuration files for the operating system and other programs are located.

/home Subdirectories are created here for users’ home directories. If you are logged in as the default user “pi” on the Raspberry Pi, you will start in the terminal at /home/pi.

/lib* This is for libraries or supporting files necessary to run the programs.

/media Removable media usually gets its own directory here when you insert it into the computer.

/mnt This is a place to mount other filesystems. It is usually empty at first.

/opt* Optional software or programs sometimes get installed in this directory.

/proc* Files that represent process- or kernel-level information are kept here.

/root* The home directory for the “root” user. It is kept separately from the other users for added security.

/run* Current information about the running system is kept here.

Published on Tue 08 September 2015 by Alistair Pinter in Linux with tag(s): raspberry pi