Bird
0
0

Which option correctly describes the -z flag when used with the tar command?

easy📝 Conceptual Q11 of 15
Linux CLI - Archiving and Compression
Which option correctly describes the -z flag when used with the tar command?
AIt compresses the archive using gzip.
BIt compresses the archive using bzip2.
CIt compresses the archive using xz.
DIt creates an uncompressed archive.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the tar compression flags

    The -z flag tells tar to use gzip compression.
  2. Step 2: Match the flag to the compression type

    -z is for gzip, -j for bzip2, and -J for xz compression.
  3. Final Answer:

    It compresses the archive using gzip. -> Option A
  4. Quick Check:

    -z means gzip compression [OK]
Quick Trick: Remember: z = gzip, j = bzip2, J = xz [OK]
Common Mistakes:
  • Confusing -z with -j or -J
  • Thinking -z creates uncompressed archive
  • Mixing compression types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes