Pack and Unpack
Create tar.gz backups and extract archives — essential for deployments and migrations.
A beginner Linux challenge worth 3 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Server migration day. You need to archive the project, then recover files from an old backup.
Your tasks:
- Create a compressed archive of /tmp/project/ → save as /tmp/project_backup.tar.gz
- Extract /tmp/mystery.tar.gz into /tmp/extracted/ (create the dir first)
- Find the file named secret.txt inside /tmp/extracted/ and write its contents to /tmp/secret_answer.txt
Commands to learn: tar -czf, tar -xzf, tar -tzf (list contents), mkdir
Run check when done.