Create a compressed archive
Cheat sheet · 9 commands
Archives & compression
tar bundles files, gzip squeezes them, and tar -z does both. The flags read as words once you know them: c create, x extract, t list, z gzip, f file.
The 3 you will use every day
Extract it (the one to memorize)
List contents without extracting
The full sheet
- Create a compressed archiveguide ›
- Extract it (the one to memorize)guide ›
- List contents without extractingguide ›
- Extract somewhere specificguide ›
- Compress, keeping the originalguide ›
- Search inside a compressed fileguide ›
- Windows-friendly archiveguide ›
- Inspect before extractingguide ›
- Fingerprint: verify a downloadguide ›
Practise these for real in the interactive course,
or keep every sheet, chapter and fix in one book: The Linux Command Line Handbook.