Log in from a computer to take this course

You'll need to log in from a computer to start Learn the Command Line. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store

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 and files. In the filesystem on the right, blog/ is the parent of 2014/, 2015/, and hardware.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 reference it at anypoint here.


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

Sign up to start coding

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?