Bird
0
0

You run gunzip file.txt but get an error saying "not in gzip format." What is the likely problem?

medium📝 Debug Q14 of 15
Linux CLI - Archiving and Compression
You run gunzip file.txt but get an error saying "not in gzip format." What is the likely problem?
Agunzip command is misspelled
Bfile.txt is not a compressed .gz file
Cfile.txt is already decompressed
DYou need to use gzip instead of gunzip
Step-by-Step Solution
Solution:
  1. Step 1: Understand gunzip input requirement

    gunzip expects a file compressed with gzip, usually ending with .gz.
  2. Step 2: Analyze error message

    "not in gzip format" means the file is not compressed or not a .gz file.
  3. Final Answer:

    file.txt is not a compressed .gz file -> Option B
  4. Quick Check:

    gunzip needs .gz files [OK]
Quick Trick: gunzip only works on gzip-compressed (.gz) files [OK]
Common Mistakes:
  • Trying to decompress uncompressed files
  • Confusing gzip and gunzip commands
  • Ignoring file extensions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes