$
Learn Linux handbook
en
XP:0
Quest 124Packer
+180 XP

Archiving with zip & unzip

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

While tar and gzip are standard on Linux, zip is the most common archive format in the cross-platform world (Windows/macOS). In Linux, we package and compress files into zip files using zip, and extract them using unzip.

- The zip command creates a zip archive.
- The unzip command extracts the files from the archive.

Let's package our notes. Create a zip archive named note.zip containing the file note.txt in your home folder. Then, test extraction by running unzip note.zip.

Command Syntax Reference

Command / SyntaxDescription
zip note.zip note.txtCreate note.zip containing note.txt
unzip note.zipExtract contents of note.zip

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Run the "zip" command
  • ○
    Run the "unzip" command

Ready to complete Quest 124?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.