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]

The tag has no usage guidance.

-2
votes
1answer
273 views

bzip2 a tar folder

I just create a tar directory of 600G test.tar inside dir1 . my question the only space available I have now 300G in dir1 I m looking for some ways to generate the compressed test.tar.bzip on the ...
1
vote
1answer
24 views

How do you extract certain information from bzip2 -v?

Suppose I have a file called index.html and I want to compress it and display the compression size of it. Well I would do this... bzip2 index.html -v Now that gives me all of the data bits/bytes, ...
1
vote
1answer
195 views

On Solaris; find, append to a tar ball and compress question

Solaris 11 I want to find all files greater that 31 days, tar them and compress the tar file. I'd like to do this on one line. I'd rather use pbzip2 than gzip!!! Here is what I tried as a ...
1
vote
1answer
317 views

Are bz files different from bz2 and how to make bz files instead of bz2?

Are bz files different from .bz2? I'm guessing bz2 is the successor of bz and perhaps they use different compression algorithms or are they essentially suffixes of filenames that mean the same thing? ...
1
vote
1answer
56 views

Compiling bzip1 on a raspberry pi 2 with debian server?

I've stumbled across the discontinued bzip-0.21 on the ftp of vim.org which is respectable, so I think it's fine. However the code from 1996 won't compile anymore with today's GCC. Is there a chance ...
1
vote
1answer
111 views

bzip2 decompression, changes and compression of a text file through the pipeline

I am searching for a way to decompress a bzip2 compressed text file, change the content (adding new content, sorting etc.) and compress it again through pipelines. I already found a way to do this ...
0
votes
1answer
55 views

poor mans backup with find and parallel compression

I'm planning to backup the /home folder of my Kubuntu box to an external drive. In order to speed up the process I consider zipping large files (individually) so that writing them is faster. I also ...
3
votes
1answer
867 views

Can I somehow update compressed archives?

I'm trying to find all files with given extension but I'm getting this error: tar: Cannot update compressed archives Try 'tar --help' or 'tar --usage' for more information. tar: Cannot update ...
15
votes
5answers
7k views

Compress a large number of large files fast

I have about 200 GB of log data generated daily, distributed among about 150 different log files. I have a script that moves the files to a temporary location and does a tar-bz2 on the temporary ...
1
vote
2answers
2k views

Getting list of corrupted file from folder and its sub folder

I have following directory structure folder └── 01 ├── test1 └── abc.bz2 └── asd.bz2 ├── test2 └── 546.bz2 └── alsj.bz2 ├── test3 └── aewr.bz2 ...
1
vote
1answer
508 views

tar in parallel [duplicate]

I have a directory with several hundred sub-directories. I want to tar and compress each sub-directory and name the resulting file <currentDirName>.tar.bz2. I have done: find ./dir -type f -...
2
votes
3answers
2k views

tar append to file in archive

Good morning, I have a tar compressed archive tar.bzip2 (created using tar jcf), which contains a file named data.txt (1). On the other side, I have another file also named data.txt (2). Is ...
3
votes
2answers
2k views

tar exits with bzip2: (stdin): trailing garbage after EOF ignored after extract

I have extracted a large (3.9GB) tar.bz2 file using the following command: tar -xjvf archive.tar.bz2 The extract proceeds fines but exits printing: bzip2: (stdin): trailing garbage after EOF ...
3
votes
1answer
3k views

Using bzgrep recursively

I wanted to use bzgrep to find to text in bzip2 files. I expected bzgrep to work as grep, but on bz2 files. So I tried bzgrep -r "mypattern" . to find text in my bz2 files. Instead of the ...
3
votes
2answers
13k views

How to extract a single file from tbz

I have the following archived directory: itunes20140618.tbz I want to extract single file from it called: itunes20140618/video How would I do this? So far, I am doing $ bzip2 -d /tmp/...
40
votes
1answer
2k views

What happened to bzip1?

bzip2 had been a de facto standard for quite strong compression throughout many years already. I myself had typed the bzip2 command thousands of times so far, which makes me wonder - what happened to ...
1
vote
2answers
85 views

bzip2 -c versus -z

Wanted to check for understanding; while revisiting the topic of using dd over netcat I experimented with compressing the data with bzip2. In the man page, there's -c (compress or decompress to ...
3
votes
1answer
352 views

Is it possible to get file list, byte range from the head of a tar+bzip2 file?

Essentially, I'm hoping someone with an advanced knowledge of tar/bz2 can answer whether this is possible. The situation is that we have a periodic 24GB feed of data from a vendor, as a .tbz file. (...
6
votes
1answer
1k views

Why bzip2 --version behaves strange?

So if I enter the command $ gzip --version | head -n1 everything goes as expected. But if I try the same with bzip2: $ bzip2 --version | head -n1 I get a lot of lines and I have to press Ctrl-C to ...
186
votes
4answers
52k views

Why are tar archive formats switching to xz compression to replace bzip2 and what about gzip?

More and more tar archives use the xz format based on LZMA2 for compression instead of the traditional bzip2(bz2) compression. In fact kernel.org made a late "Good-bye bzip2" announcement, 27th Dec. ...
2
votes
1answer
285 views

tar.bz2 7zip selective extract prformance

We use tar.bz2 as our archive of server logs. We also write tools that selectively parse these archived logs. Many times I must regex-search one file’s lines in the archive to determine if other ...
2
votes
8answers
7k views

Triple compression and I only save 1% in space?

I've been trying to save space on my linux server, and I had a folder containting, in subfolders, 22GB of images. So I decided to compress them. First I used tar: tar -zcf folder.tar folder Then ...
6
votes
2answers
3k views

How to bzip a file with minimum cpu percentage?

I am using bzip2 to compress a file,the process takes more that 100% cpu.Is there any way to run bzip2 with minimum CPU precentage.
6
votes
3answers
21k views

bunzip2 to a different directory

Say I have a file foo.tbz2 in a directory. I want to extract the tar file from the archive, but to a different directory. It seems like bunzip2 will only extract the archive to the same directory as ...
11
votes
2answers
13k views

How to check/test .tar.bz archives?

I've been using tar with its "--use-compress-prog=pbzip2" function to archive my files then compress them with pbzip2 to get an "*.tar.bz" archive. Afterwards I checked the resulting file with pbzip2'...
0
votes
2answers
2k views

Install libbz2 from source on CentOS

I want to install the bz2 library from ssh to my CentOS server. I get it from the homepage and use tar -xvf command to extract it, but it does't have a configure file to compile and install it. ...