Coding for All
Level 7: Making a Folder
Making a Folder Create a new folder and watch it appear.

mkdir is short for "make directory". It creates a new, empty folder with the name you give it, inside the folder you are standing in. Notice that it printed nothing at all. In the terminal, silence means success: commands only speak up when they have something to say or something went wrong.

Run ls afterwards and notice where the new name appears: ls sorts everything alphabetically, so a new folder does not turn up at the end, it slots into place. The file tree on the left will show it too.

Names with spaces in them are awkward at a prompt, because a space separates one word from the next. That is why folders on a computer are so often called things like my-project or my_project.

mkdir gamesMake a new folder called games.
mkdir -p a/bMake a folder and any folders above it.
Your task
  • Make a new folder
  • Check it is there with ls

Open this level in your browser to type the commands at a live terminal that answers back.