Bird
0
0

Which gzip option allows you to compress a file without deleting the original?

easy📝 Conceptual Q2 of 15
Linux CLI - Archiving and Compression
Which gzip option allows you to compress a file without deleting the original?
A-r
B-d
C-k
D-f
Step-by-Step Solution
Solution:
  1. Step 1: Understand gzip options

    The -k option tells gzip to keep the original file after compression.
  2. Step 2: Analyze other options

    -d decompresses, -r is recursive, and -f forces overwrite.
  3. Final Answer:

    -k -> Option C
  4. Quick Check:

    Keep original file after compression? Use -k [OK]
Quick Trick: Use -k to keep original file after gzip compression [OK]
Common Mistakes:
  • Confusing -d (decompress) with keeping original
  • Using -r which is for recursion, not keeping files
  • Assuming -f keeps original, but it forces overwrite

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes