Bird
0
0

You want to decompress multiple gzip files but keep the compressed files intact. Which command achieves this?

hard📝 Application Q9 of 15
Linux CLI - Archiving and Compression
You want to decompress multiple gzip files but keep the compressed files intact. Which command achieves this?
Agzip -d *.gz
Bgunzip -r *.gz
Cgunzip -k *.gz
Dgzip -r -d *.gz
Step-by-Step Solution
Solution:
  1. Step 1: Identify option to keep files

    -k with gunzip keeps compressed files after decompression.
  2. Step 2: Apply to multiple files

    Using *.gz decompresses all gzip files in current directory.
  3. Step 3: Confirm other options

    -r is recursive, not needed here; gzip -d decompresses but may not support -k.
  4. Final Answer:

    gunzip -k *.gz -> Option C
  5. Quick Check:

    Decompress and keep compressed files = C [OK]
Quick Trick: gunzip -k decompresses and keeps original gzip files [OK]
Common Mistakes:
  • Using -r without recursion need
  • Assuming gzip -d supports -k
  • Not using -k to keep files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes