Skip to content
Clairos Learn

Files and paths · Lesson 7 of 36 · 8 minutes

Archive basics

Create and list a simulated tar archive.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Backups and deployments often use archive tools.

mkdir
Create a directory. -p also creates missing parent directories and accepts an existing directory.

Creating a folder does not change the current directory.

tar
Practice archive inventory, creation, and extraction in a simulated archive format.

These training archives are virtual data structures, not downloadable production tar files.

Worked example and expected result
$ mkdir -p lab
(no output; exit 0)

Exit status: 0. The command completed successfully in the training fixture.

$ tar -cf lab/notes.tar README.txt
created archive /home/learner/lab/notes.tar

Exit status: 0. The command completed successfully in the training fixture.

$ tar -tf lab/notes.tar
README.txt

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “Archive basics”, which interpretation is safe?

Apply it elsewhere

Before adapting the tar workflow from “Archive basics” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: File differencesTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Symbolic linksCreate and inspect a simulated symbolic link.Practice
  2. 02File differencesCompare two training config files before editing either one.Practice
  3. 03ChecksumsUse deterministic training hashes to verify file identity.Practice