Bird
0
0

You run xz -d file.xz but get an error saying "file.xz: No such file or directory". What is the likely problem?

medium📝 Debug Q14 of 15
Linux CLI - Archiving and Compression
You run xz -d file.xz but get an error saying "file.xz: No such file or directory". What is the likely problem?
AThe file <code>file.xz</code> does not exist in the current directory
BThe <code>-d</code> option is invalid for decompression
CYou need to use <code>-k</code> to decompress
DThe file is already decompressed
Step-by-Step Solution
Solution:
  1. Step 1: Understand the error message

    The error "No such file or directory" means the file file.xz is missing in the current folder.
  2. Step 2: Check command options

    -d is correct for decompression; -k is unrelated to decompression; file must exist to decompress.
  3. Final Answer:

    The file file.xz does not exist in the current directory -> Option A
  4. Quick Check:

    File missing causes No such file error = A [OK]
Quick Trick: Check file exists before decompressing with -d [OK]
Common Mistakes:
  • Thinking -d is wrong option
  • Using -k to decompress
  • Ignoring file location

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes