Learn

A filesystem organizes a computer’s files and directories into a tree structure:

  1. The first directory in the filesystem is the root directory. It is the parent of all other directories and files in the filesystem.
  2. 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 action/, comedy/, drama/, and genres.txt.
  3. 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.

Instructions

Move on to the next exercise to start learning about the different commands!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?