Questions tagged [bzip2]

Use bzip2 for questions about the files compressed with bzip2.

Filter by
Sorted by
Tagged with
529 votes
6 answers
1.3m views

How to decompress a .bz2 file

I have a file as: filename.bz2 I need to decompress. I have tried the command: tar xvjf filename.tar.bz2, but it didn't work as the file is not a tar file. How do I decompress this file?
Jury A's user avatar
  • 5,435
176 votes
7 answers
304k views

How to password protect gzip files on the command line?

I want to create some tar.gz (and possibly tar.bz2) files, using the tar command on Ubuntu 10.04. I want to password protect the file. What is the command to do this (I have Googled, but found ...
morpheous's user avatar
  • 4,343
156 votes
7 answers
123k views

Pros and cons of bzip vs gzip?

I've known gzip for years, recently I saw bzip being used at work. Are they basically equivalent, or are there significant pros and cons to one of them over the other?
ripper234's user avatar
  • 11.5k
48 votes
6 answers
43k views

What is the difference between TAR vs CPIO archive file formats?

I am curious and did a bit of reading but still have questions. What makes CPIO different than TAR? I was told in another question that tar is for pulling together many files into 1 archive which ...
AtomicPorkchop's user avatar
45 votes
2 answers
23k views

Is there a way to determine the decompressed size of a .bz2 file?

Is there a way to print the decompressed size of a .bz2 file without actually decompressing the entire thing?
endolith's user avatar
  • 7,607
31 votes
5 answers
37k views

Between xz, gzip, and bzip2, which compression algorithim is the most efficient?

Between xz, gzip, and bzip2, which compression algorithm gives the smallest file size and fastest speed when compressing fairly large tarballs?
Nathan2055's user avatar
  • 1,220
19 votes
7 answers
28k views

Which archiving method is better for compressing text files on Linux?

In my application I need do compress of logs that are text files. Seems that bzip2 and gzip have the same compression ratio. Is that correct?
user710818's user avatar
16 votes
5 answers
8k views

Is there a way to mount a file.tar.bz2 without extracting it onto the filesystem?

Is there a way to mount a file.tar.bz2 without extracting it onto the filesystem? I don't care if the mount is read only. Hopefully your answer will also apply to file.tar.gz. "mount" in this ...
GlassGhost's user avatar
  • 1,269
13 votes
3 answers
21k views

How do I convert tar.bz2 to tar.gz?

I'm new in Linux, is this conversion possible? Do I need to compress and decompress all content?
Caio Tarifa's user avatar
9 votes
4 answers
40k views

Uncompress bz2 file from command line on Windows

Is there any tool in the Windows command line that allows me to do this? Otherwise, is there any light and portable application that will allow me to? Related question, can I rename .bz2 extension to ...
Sergio Basurco's user avatar
7 votes
3 answers
33k views

Extracting a *.tar.bz2 file?

I always used to use this command to extract files from a bzip2 tar ball: tar xjvf file.tar.bz2 But right now on Ubuntu 14.04, I get this error: tar: Conflicting compression options Try 'tar --help'...
supercheetah's user avatar
7 votes
3 answers
7k views

Use tar vs bzip2 for creating a .tar.bz2 archive?

I just read that tar can create .tar.bz2 files. All this while, I was using tar + bzip2 to do this. I was wondering if there was a difference between using tar to create the archive vs using bzip2? ...
Jeffrey Jose's user avatar
7 votes
0 answers
422 views

What is the etymology behind "-j" indicating bzip2 for tar? [closed]

What is the etymology behind "-j" indicating bzip2 for tar?
Max Nanasy's user avatar
5 votes
2 answers
2k views

Linux - Is there a way to convert .bz2 files to .tar.bz2 files using pipes?

Is there a way to convert a .bz2 file to a .tar.bz2 file without decompressing the entire thing to disk and then re-compressing? The decompressed size is larger than my drive. Since bz2 operates on ...
endolith's user avatar
  • 7,607
4 votes
1 answer
7k views

tar/bz2 compress a file removing uncompressed original

Is there any way to turn a directory called dir1 into dir1.tar.bz2 without keeping the original? I need to save space and want to compress some large files but don't have enough room to keep a ...
Gregg Leventhal's user avatar
4 votes
2 answers
4k views

Linux shell: repack a bz2 archive into xz

How can I repack .bz2 archive to .xz format, if I want to save datestamp of file and its chmod-chown settings? I can use any standard tools and xz, lzma, p7zip
osgx's user avatar
  • 6,847
3 votes
4 answers
2k views

Has zip any advantages over bz2? [duplicate]

Possible Duplicate: How can I evaluate the best choice of archive format for compressing files? I've just downloaded phpBB3 and saw they offer a bz2 (1.51 MB) and a zip (2.35 MB) download. This ...
Martin Thoma's user avatar
  • 3,434
3 votes
4 answers
12k views

How to bzip2 multiple files into one single archive file

I am reading an offline document of bzip2 and I am told that I can compress multiple files into one single archive using bzip2 like this: bzip2 finalArchive.bz2 file1 file2 file2 But when I try this ...
Cat Hariss's user avatar
3 votes
2 answers
557 views

What type of data is compressed more effectively by bzip2 than gzip/zlib?

I'm comparing compression functions, and I'm surprised by what I'm seing. Maybe I'm doing something wrong, but everything I've tested has been more compressed by gzip than bzip2! I was under the ...
Jeremy's user avatar
  • 1
3 votes
1 answer
6k views

How to decompress a .bz2 file in Google Collab

The answers on this site mostly suggest using bzip2 and bunzip, but I can't install them in Google Collab.
user3656142's user avatar
3 votes
1 answer
4k views

General Compressibility Of Various File Formats [closed]

Has anyone come across list of which file formats generally compress well (in general algorithms)? Generally, text files .txt compress well, and media-files (.mp3, .avi, etc) do not compress well. I'...
Steven's user avatar
  • 27.9k
2 votes
1 answer
8k views

How to convert a file of format tar.gz to tar.bz2?

Like the title says, how do I do this conversion from the Linux console?
Chase T.'s user avatar
  • 123
2 votes
2 answers
291 views

Modern command line file compression utilities

I am frequently moving large files around from server to server. UNIXes comes with standard gzip and bzip2 compressors. However, what open options there exist beyond these, especially ones utilizing ...
Mikko Ohtamaa's user avatar
2 votes
1 answer
2k views

Is there a way to extract a bzip2-archive's content into another directory without creating temporary files?

I'm working with Wikipedia XML dumps and am looking for a way to extract them directly onto my ramdisk. They are simply a single xml file compressed with bzip2. I tried bzip2 -dk archive.bz2 /target/...
Adrian's user avatar
  • 132
1 vote
3 answers
10k views

Good Open Source/Free Program to Convert a bz2 file to ISO? [closed]

I have a very large bz2 file which I want to convert to a ISO image. Are there any good open source/free programs that can do this WITHOUT having to extract it first? EDIT: When I mean "without ...
Kryten's user avatar
  • 2,065
1 vote
2 answers
3k views

Extracting a bzip2 file throws "Can't guess original name" and does not extract separate files

I made a bzip2 file by bzip2 -c /home/os/picture1 > /home/os/Desktop/pic.image bzip2 -c /home/os/picture2 >> /home/os/Desktop/pic.image But now extracting pic.image by bzip2 -d /home/os/...
Uthman's user avatar
  • 967
1 vote
1 answer
426 views

recompressing .gz and .bz2 files to attain the same hash/checksum (mod timestamps?)

i want to duplicate the entire contents of wikimedia's dumps, monthly, and upload them to amazon glacier and/or tape backup and/or a third backup medium that can survive corporation collapse/...
loud_flash's user avatar
1 vote
1 answer
2k views

Cannot Generate .tar.bz2 File

How do I make a .tar.bz2 from directory tree in Win10? Trying tar -cjf Archive.tar.bz2 www and getting tar: Can't launch external program: bzip2. Refs: Cannot Generate .tar File, https://blogs....
flywire's user avatar
  • 205
1 vote
2 answers
3k views

extract archived .bz2 files inside a .tar archive with a single command

i need to decompress .bz2 files inside a .tar archive (two step decompression) For example: requested_files_1.tar has multiple .bz2 files inside. How can I extract them with a single command ...
FlyingMGET's user avatar
1 vote
1 answer
563 views

R INSTALL ON SERVER ERROR "bzip2 library and headers are required" despite being already installed

I keep getting the error checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required when trying to install R onto a server environment. I installed bzip2 ...
Yaseen Ahammed's user avatar
1 vote
0 answers
598 views

wget only new or updated files when the source files are compressed but the destination files are uncompressed

I would like to know how to wget files from a url which are stored with bz2 compression. However, I would like to only wget the new and updated files, relative to my destination, where the files are ...
bsuttonq's user avatar
1 vote
1 answer
142 views

Unzipping a .btbz2 file on Linux

I just started working on Linux and got my first challenge I have this file under some directory and I guess it is a zip file I need to unzip can any one please tell how to unzip this .btbz2 file
Rohit Saluja's user avatar
1 vote
2 answers
1k views

bzgrep -H pattern file.bz2 gives no filename, but "standard input"

I thought -H always should print filename before matched line. this is true for grep, but not for bzgrep: $ grep -H pattern file1 file1: data pattern data $ bzgrep -H pattern file2.bz2 (standard ...
Washuu's user avatar
  • 23
0 votes
3 answers
7k views

Is there a way to estimate how much space a file or directory of a given size will take up after being compressed with tar and bzip2?

Due to an imminent distro switch, I would like to backup my home directory. However, my home directory is 29 gigabytes. I would like to know how much space this would take up after being compressed ...
Blue-Maned Hawk's user avatar
0 votes
1 answer
2k views

How to recursively bzip2 files in a folder to a single bz2 file

I have this problem, where I need to find all files with a particular name and zip all of them into a single zip file. I tired things like find . -not -name "*bz2" -name "myname*" -exec bzip2 test....
Paddy Mahadeva's user avatar
0 votes
1 answer
1k views

Linux says tar file doesn't exist

I'm REALLY new to Linux, so just bear with me... I downloaded a .tar.bz2 file, and I am trying to unpack it. However, each time I attempt to unpack the tarball using tar zxvf Linux says "Cannot ...
bad-gyal's user avatar
0 votes
1 answer
3k views

Extracting .bz2 file on Windows creates a single file with no extension, how do i open it?

I have no idea what kind of file this is, if i open it in Notepad ++ first few strings look like this: Layer 0 0 true false false true false wmNone 0 0
Ivan Kartofanov's user avatar
0 votes
1 answer
3k views

Failing to extract a tar/bz2 file

File in question is http://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltopdf-0.10.0_rc2-static-i386.tar.bz2 meder@pc:~$ tar -xvjf wkhtmltopdf-0.10.0_rc2-static-i386.tar.bz2 bzip2: (...
meder omuraliev's user avatar
0 votes
0 answers
158 views

Untar bz2 to Microsd fails

I am trying to uncompress tar.bz2 file to ext3 formatted MicroSD card and after copying some files to card I see below errors and tar fails with below errors tar: ./usr/lib/gcc/gcc/arm-poky-linux-...
Sirish Kumar Bethala's user avatar
0 votes
2 answers
958 views

bzip2 randomly launches on OS X 10.6.8

Is there an application for OS X that will let me view what parent process is launching bzip2? It randomly opens up and eats a massive amount of CPU so it sorta lags the computer. I'm not sure what's ...
Propeller's user avatar
  • 1,195