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…
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)- C95% (20)
- D5% (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
Community Discussion
No community discussion yet for this question.