exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 25 discussion

Actual exam question from CompTIA's XK0-005
Question #: 25
Topic #: 1
[All XK0-005 Questions]

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

  • A. unzip -v
  • B. bzip2 -z
  • C. gzip
  • D. funzip
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Rob74613
Highly Voted 1 year, 8 months ago
Selected Answer: D
unzip -v only displays the contents with verbosity of a compressed file but not extract bzip2 -z will compress a file not extract gzip will only compress a file not extract funzip is the ONLY option here that if used just like it is will extract a file. The funzip command is used to decompress files that have been compressed with the ZIP compression algorithm. It is part of the Info-ZIP suite of tools and is typically available on Linux and Unix systems.
upvoted 5 times
...
JRS99
Most Recent 3 weeks, 4 days ago
Selected Answer: D
Correct answer: D unzip -v is not sufficient to accomplish the task. bzip2 -z is going to compress the file. gzip is going to compress the file. (The option is gzip, not gunzip people. Don’t assume.) funzip alone will extract compressed ZIP files.
upvoted 2 times
...
insanegrizly
2 months, 1 week ago
Selected Answer: D
unzip -v: The -v option with unzip is used to list the contents of a zip file but does not extract them. So, while unzip is a valid command for extraction, -v alone won’t do it, therefor i'm going with D.
upvoted 1 times
...
Qubert2
3 months ago
funzip is a command in Linux for decompression. It is part of the Info-ZIP suite and is used to extract the contents of a single file from a compressed .zip archive, sending the decompressed data to standard output (stdout). Unlike the unzip command, funzip works only with a single member from a zip archive or from a stream of compressed data, making it useful in pipelines or when you want to process the decompressed content on-the-fly without fully extracting the file to disk.
upvoted 1 times
...
riddie78
1 year ago
MOST LIKELY GUNZIP... the g and f are close on keyboard... misspelling most likely... so D
upvoted 3 times
...
kennethcan
1 year, 2 months ago
Selected Answer: D
As written, "funzip" is the only command here that will actually extract a .zip. None of these will extract anything else compressed without additional options. Hopefully this question is just wrong.
upvoted 4 times
...
linux_admin
1 year, 11 months ago
Selected Answer: C
C. gzip is the best option.
upvoted 3 times
...
linux_admin
1 year, 11 months ago
Selected Answer: A
A. unzip -v
upvoted 1 times
linux_admin
1 year, 10 months ago
***Discard***
upvoted 1 times
...
...
bjornborg
2 years, 2 months ago
Selected Answer: A
opposite of gzip is gunzip...gzip compresses, gunzip uncompresses ... just because .gz suffix on a file, it will not uncompress with gzip...needs gunzip # gzip file.gz gzip: file.gz already has .gz suffix -- unchanged
upvoted 4 times
TheRealManish
2 years, 1 month ago
gzip -d decompresses,, but then they aren't giving us the -d in the answer.. These questions are ridiculous. we shouldn't have to be guessing if an option can or can't be used.
upvoted 2 times
...
Veteran903
2 years, 1 month ago
gzip is a file format and a software application used for BOTH, file compression and decompression.
upvoted 1 times
...
...
MissAllen
2 years, 2 months ago
I agree with A. Be careful in assuming that the package being downloaded is in gzip format. It can be in any acceptable format in Linux, such as xz or bz2 or zip. Also, the wording of the question is tricky. When I took an earlier version of Linux+ (when it was two exams), they were pretty clear when they wanted just a command as an answer versus the entire command syntax, which can include options and arguments.
upvoted 2 times
...
Aamm033
2 years, 2 months ago
Selected Answer: A
Answer is A because unzip -v decompress with verbose and gzip without the -d option will compress.
upvoted 4 times
TheRealManish
2 years, 2 months ago
I disagree and think the answer is C. the question says it download a software package. a linux software package is going to be stored in gz formate not windows zip format. The question also doesn't ask for an argument/operation, just which command.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago