How to extract .tar.bz2?

I'm downloading an engine game file which is compressed as .tar.bz2.

I'm trying this command

tar -zxvf enginsxt.tar.bz2

And it throws an error. I know that command

tar -zxvf

is only for extracting .tar.gz files, but how can I decompress this one?

3

1 Answer

Have you checked the man page for tar?

Here is the part that I extracted from man page of tar for bz2:

-j, --bzip2 filter the archive through bzip2

Remove -z from your options and (optionally) add -j to extract your tar archive correctly:

tar -xvjf enginsxt.tar.bz2
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like