What command is used to create a compressed tar file with bzip2?

Prepare for the LPI Linux Essentials Exam with our comprehensive quiz. Study with interactive flashcards and multiple choice questions, with detailed hints and explanations for each. Ace your exam with confidence!

To create a compressed tar file using bzip2, the command incorporates the option that specifies the usage of bzip2 for compression. In the command, the -j option is specifically used to indicate that bzip2 compression should be used during the archiving process. The -c option tells the tar command to create a new archive. Therefore, when combined, the command effectively creates a new tar archive while compressing it using bzip2.

In contrast, the other options either use incorrect compression options or commands. The -z option is used for gzip compression, not bzip2. The -f option is for specifying the filename of the archive but does not indicate the compression type. The -x option is used to extract files from an archive, rather than creating one. Thus, option B accurately reflects the correct command for creating a compressed tar file with bzip2.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy