A filesystem organizes a computer’s files and directories into a tree structure:
- The first directory in the filesystem is the root directory. It is the parent of all other directories and files in the filesystem.
- Each parent directory can contain more child directories (also called subdirectories) and files. In the filesystem on the right,
movies-rpi/is the parent of
- Each directory can contain more files and child directories. The parent-child relationship continues as long as directories and files are nested.
You’re probably already familiar with this tree structure - Mac Finder and Windows Explorer represent the filesystem as trees as well.
We are going to use the pictured filesystem for the rest of the lesson. You can access the layout of the filesystem here.
Move on to the next exercise to start learning about the different commands!