Get your API key

Lesson 3 of 5

Ten everyday commands

Move around, make folders and files, copy, rename and delete safely, plus Tab, the up arrow and --help.

9 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will use ten everyday commands to look around, move between folders, make, read, copy, rename and delete files, on Windows, Mac and Linux.

You need: a terminal open in your home folder (how) · Time: 9 minutes

  1. Two commands answer the questions you'll ask most:

    • pwd (print working directory) shows the folder you are in. "Directory" is the old word for folder.
    • ls (list) shows what is inside it. On Windows, dir does the same, and ls works in PowerShell too.
    Why?

    Before you run anything the AI suggests, pwd and ls tell you whether you are in the right project. Two seconds, many saved mistakes.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Move around with cd
  2. Make folders and files
  3. Read, copy and rename
  4. Delete carefully
  5. Shortcuts that save typing
  6. Recap