QuestionQ73

Essential Commands

Which command should be used to extract the contents of the archive file named download.bz2?

  • A unpack download.bz2
  • B unzip2 download.bz2
  • C bunzip2 download.bz2
  • D unzip download.bz2
  • E uncompress download.bz2
Explanation

Files with a .bz2 extension are compressed using the bzip2 compression algorithm. The standard Linux utility to decompress such files is bunzip2, which is functionally equivalent to running 'bzip2 -d'. Tools like unzip (and the nonexistent 'unzip2') are used for .zip archives, while uncompress is used for files compressed with the older compress utility (.Z extension), and 'unpack' is not a valid decompression command for bz2 files.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!