What single command (no options or arguments) can be used to fully extract a file called abc.tar.bz2?
A. gunzip
B. gzip
C. tar
D. bz2unzip
2 Comments on “What single command (no options or arguments) can be used to fully extract a file called abc.tar.bz2?”
Nosferatusays:
Tar requires several options, just to extract a .tar archive, let alone decompress a .bz2 archive.
The answer would be ‘D’, if that option was actually “bunzip2”.
0
0
Tonysays:
That wouldn’t work either, it will bunzip but won’t untar, so will decompress but not extract. I suspect another wrong question/answer. tar is the only on that list that will untar AND unbzip2, but as you say requires option (xjf).
Tar requires several options, just to extract a .tar archive, let alone decompress a .bz2 archive.
The answer would be ‘D’, if that option was actually “bunzip2”.
0
0
That wouldn’t work either, it will bunzip but won’t untar, so will decompress but not extract. I suspect another wrong question/answer. tar is the only on that list that will untar AND unbzip2, but as you say requires option (xjf).
0
0