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 six commands in order. Think carefully about each step — especially when deleting!

Try it yourself

Terminal

All lessons in Fundamentals