Bird
0
0

What does the gzip command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Archiving and Compression
What does the gzip command do in Linux?
ALists files in a directory
BDeletes a file permanently
CCompresses a file and replaces the original with a .gz file
DCreates a backup copy of a file
Step-by-Step Solution
Solution:
  1. Step 1: Understand gzip purpose

    The gzip command compresses files to save disk space.
  2. Step 2: Effect on original file

    It replaces the original file with a compressed file ending in .gz.
  3. Final Answer:

    Compresses a file and replaces the original with a .gz file -> Option C
  4. Quick Check:

    gzip compresses files = D [OK]
Quick Trick: gzip compresses and replaces original file by default [OK]
Common Mistakes:
  • Thinking gzip deletes files without compression
  • Confusing gzip with backup commands
  • Assuming gzip lists files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes