Mission 06

Copy and move

Duplicate and rename project files while checking paths before and after.

Files and paths
0/25 lessons 0/7 missions
Ops lab terminal Browser only
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Lesson support

What to notice while you play.

Objective

Use cp and mv without losing track of source and destination.

Hint

Copy /home/learner/projects/hello.txt into lab after making lab.

Why it matters

Copy and move mistakes are easy to prevent with a quick ls or cat.

Common mistakes
  • Moving instead of copying.
  • Forgetting that a destination directory keeps the same filename.
Reference

Commands in this lesson.

ls [-la] [path]

List fake files and folders.

cat <file>

Print text file contents.

cp <src> <dst>

Copy a file.

mv <src> <dst>

Move or rename a file.