Menu
Coddy logo textTech

Recap - Directory Operations

Part of the Fundamentals section of Coddy's Terminal journey — lesson 20 of 82.

challenge icon

Challenge

Easy

Put all your directory operation skills together!

  1. Create a new directory called projects using mkdir
  2. Copy the documents directory into projects as documents_backup using cp -r
  3. Rename projects/documents_backup to projects/archive using mv
  4. Delete the original documents directory using rm -r
  5. List the contents of the current directory using ls
  6. List the contents of the projects directory using ls projects

You will need to run exactly six commands in order. Do not run any extra or repeated commands — the test checks the combined output of all commands you run, so any additional commands will cause the result to be marked wrong. Think carefully about each step — especially when deleting!

Try it yourself

Terminal

All lessons in Fundamentals