nerdexam
CompTIA

XK0-005 · Question #511

A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

The correct answer is C. gzip. Among the choices, gzip is the correct tool for extracting a gzip-compressed file. Used with the -d flag (gzip -d file.gz) or equivalently as gunzip, it decompresses the archive. Option A (unzip -v) uses the verbose flag which lists the ZIP archive contents rather than…

System Management

Question

A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

Options

  • Aunzip -v
  • Bbzip2 -z
  • Cgzip
  • Dfunzip

How the community answered

(21 responses)
  • C
    95% (20)
  • D
    5% (1)

Explanation

Among the choices, gzip is the correct tool for extracting a gzip-compressed file. Used with the -d flag (gzip -d file.gz) or equivalently as gunzip, it decompresses the archive. Option A (unzip -v) uses the verbose flag which lists the ZIP archive contents rather than extracting them. Option B (bzip2 -z) uses the compress flag (-z), which compresses rather than decompresses. Option D (funzip) extracts only the first file from a ZIP archive and is not a general-purpose extraction tool. gzip is the standard utility for handling .gz compressed files.

Topics

#Linux commands#File compression#gzip#Decompression

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice