Bird
0
0

Which command correctly compresses a file named data.txt using gzip in Linux?

easy📝 Syntax Q12 of 15
Linux CLI - Archiving and Compression
Which command correctly compresses a file named data.txt using gzip in Linux?
Agzip data.txt
Bcompress data.txt
Czip data.txt
Dtar data.txt
Step-by-Step Solution
Solution:
  1. Step 1: Identify the gzip command syntax

    The gzip command compresses files with the syntax: gzip filename.
  2. Step 2: Check other options

    compress is a different tool, zip creates zip archives, tar bundles files but does not compress alone.
  3. Final Answer:

    gzip data.txt -> Option A
  4. Quick Check:

    gzip compresses files = A [OK]
Quick Trick: Use gzip filename to compress quickly [OK]
Common Mistakes:
  • Using zip instead of gzip for gzip compression
  • Confusing tar with compression command
  • Using compress which is less common

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes