Mission 05

Files

Create folders and files, then copy, move, and remove lab files carefully.

Files and paths
10 minutes Beginner Lesson 5 of 360
mkdirtouchcpmvrmfind
Lesson 5 of 360 0/360 lessons 0/17 missions Files and paths · 10 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 10 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Create a lab folder

Run mkdir lab to create a training folder.

mkdir lab
Create a note

Run touch lab/note.txt.

touch lab/note.txt
Copy the note

Run cp lab/note.txt lab/note-copy.txt.

cp lab/note.txt lab/note-copy.txt
Lesson support

What to notice while you play.

Objective

Create a small lab area and make safe file changes inside it.

Hint

Create the folder before touching a file inside it.

Why it matters

Most terminal work is careful path and file manipulation.

Common mistakes
  • Creating files in the wrong directory.
  • Copying a directory when this lab expects a file.
Reference

Commands in this lesson.

mkdir <name>

Create a folder.

touch <file>

Create an empty file.

find [path] [-name text]

Search lab filesystem paths.

cp <src> <dst>

Copy a file.

mv <src> <dst>

Move or rename a file.

rm <file>

Remove one lab file with safeguards.