Mission 38

Archive basics

Create and list a simulated tar archive.

Files and paths
8 minutes Core Lesson 38 of 360
mkdirtar
Lesson 38 of 360 0/360 lessons 0/17 missions Files and paths · 8 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 8 minutes

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

Create archive lab

Run mkdir lab.

mkdir lab
Create archive

Run tar -cf lab/notes.tar README.txt.

tar -cf lab/notes.tar README.txt
List archive

Run tar -tf lab/notes.tar.

tar -tf lab/notes.tar
Lesson support

What to notice while you play.

Objective

Understand the shape of tar create and list operations.

Hint

Use tar -cf to create and tar -tf to list.

Why it matters

Backups and deployments often use archive tools.

Common mistakes
  • Listing an archive before creating it.
  • Treating archives as magic backups without verification.
Reference

Commands in this lesson.

mkdir <name>

Create a folder.

tar -cf|-tf <archive>

Create and list training archives.