System Management

An administrator copies /tmp/db_dump.sql.xz to a recovery server. The file must be decompressed to /tmp/db_dump.sql, and the original .xz file must stay in place for auditing. Which command does this?

Show the answer

Correct answerD. xz -dk /tmp/db_dump.sql.xz

xz -d decompresses .xz files and -k keeps the input file. gunzip and bunzip2 only handle gzip and bzip2 formats, so they reject the .xz suffix. xz -z compresses rather than decompresses, so it would skip a file that already has the .xz suffix.