Conquer the LPI Linux Essentials Exam 2026 – Dive Deep into D281 & C851 Magic!

Session length

1 / 400

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

tar -z -c

tar -j -c

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.

tar -f -j

tar -x -j

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy