Q: 7
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
Discussion
Option C is correct here, but only if the file is actually .gz format. If it's a .zip, then unzip would be needed instead. Sometimes practice tests like to sneak in that detail, so check the file extension.
C , lots of similar questions in the LX0-005 study guides and labs.
D imo
Option C since gzip is the standard for .gz files on Linux. Official Linux+ guide and practice labs both point to gzip for extraction. If it was a zip file, unzip would be the move, but that's not mentioned here. Pretty sure, but chime in if you see it differently.
I actually think A could work here since unzip -v deals with compressed files, so it makes sense if the package is a zip archive. Not sure why everyone's skipping over A for basic extraction needs, unless I'm missing something about the flags. Open to corrections if someone’s tried this directly.
C here. Most Linux compressed files use gzip, so that's the default tool unless stated otherwise.
C over A. A is a trap since
unzip -v just shows contents, doesn't extract them. Gzip actually decompresses files on Linux, so that's way more likely here. Pretty sure about this but open if anyone has a counterpoint.C tbh. Unless it's a zip file but the question just says compressed, so gzip is usually the go-to. Not totally sure without the extension.
C
C imo. Had something like this in a mock and gzip is used for extracting .gz files, which are the usual format for Linux software packages. Others here only list contents or are for zip files.
Be respectful. No spam.