Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bzip2]

Use bzip2 for questions about the files compressed with bzip2.

1
vote
1answer
35 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....
0
votes
3answers
721 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 ...
0
votes
1answer
678 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....
0
votes
0answers
54 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-...
0
votes
1answer
576 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
1
vote
0answers
72 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 ...
0
votes
1answer
119 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
0
votes
1answer
229 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/...
0
votes
2answers
4k 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 ...
5
votes
3answers
16k 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'...
1
vote
2answers
791 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 ...
1
vote
2answers
701 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 ...
2
votes
1answer
3k 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?
4
votes
1answer
5k 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 ...
13
votes
3answers
14k 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?
0
votes
2answers
872 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 ...
316
votes
6answers
736k 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?
2
votes
1answer
3k 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'...
7
votes
0answers
277 views

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

What is the etymology behind "-j" indicating bzip2 for tar?
6
votes
3answers
4k 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? ...
2
votes
2answers
255 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 ...
13
votes
6answers
14k 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?
10
votes
3answers
15k 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?
37
votes
6answers
27k 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 ...
3
votes
4answers
312 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 ...
4
votes
2answers
3k 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
3
votes
2answers
357 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 ...
12
votes
4answers
6k 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 ...
0
votes
1answer
2k 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: (...
1
vote
2answers
1k 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/...
102
votes
6answers
65k 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?
113
votes
6answers
155k 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 ...
1
vote
3answers
5k 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 ...
26
votes
2answers
14k 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?
5
votes
2answers
1k 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 ...