Questions tagged [bzip2]
The bzip2 tag has no summary.
41 questions
1
vote
1
answer
157
views
Parallel processing of single huge .bz2 or .gz file
I would like to use GNU Parallel to process a huge .gz or .bz2 file.
I know I can do:
bzcat huge.bz2 | parallel --pipe ...
But it would be nice if there was a way similar to --pipe-part that can read ...
0
votes
1
answer
83
views
Is it possible to compress a tar ball with gzip/bzip2/xz after tar ball file has been created?
If we create a tar ball file by giving the following command
tar -cvf Docs.tar $HOME/Documents/*
then post creation of the tar ball is it possible to use gzip or bzip2 or xz or some other compression ...
1
vote
1
answer
2k
views
How to extract all uncorrupted file from bzip2 compression?
I am trying to uncompresss a bzip2 file (~55 GB) with the command
tar -jxvf file.tar.bz2
However I found that the decompression process gets stuck at a certain file and, after waiting a long duration, ...
1
vote
0
answers
743
views
Compressing small files with gzip makes its size smaller than with bzip2, why? [closed]
I have a question, just a little thing couch my eyes
it's about compression with gzip and bzip2:
If I understood correctly - bzip2 requires more processing power but compresses files smaller and more ...
0
votes
2
answers
424
views
using bzip gzip zip in bash
#!/bin/bash
# check if the user put a file name
if [ $# -gt 0 ]; then
# check if the file is exist in the current directory
if [ -f "$1" ]; then
# check if the file is ...
2
votes
1
answer
3k
views
php build error: please reinstall BZip2 distribution
I tried to build PHP v8.0.0 from its source but after running ./configure it says:
...
checking for BZip2... not found
configure: error: please reinstall BZip2 distribution
But I have bzip2 installed ...
0
votes
0
answers
263
views
Compression vs. redundancy: do they cancel each other out?
Does it make sense to compress a tarball (or any kind of file, really), e.g., using gzip or bzip2, while at the same time creating redundancy files for it, e.g., a par2 file?
The context is that I am ...
1
vote
2
answers
2k
views
Check tar file for errors
If there any way to see if there is a problem with the .tar.bz2 file? As you can see, I can get a list of files, but neither xjvf nor xzvf works in this case.
$ tar tf pytorch.20210702.tar.bz2 | head ...
2
votes
1
answer
9k
views
tar (child): : Cannot open: Is a directory
I know thats a pretty dumb question but I didn't found this precise question on internet
I try to tar -cvjf all the contents of a directory (/*) and directly redirect that to a file (> file) but ...
9
votes
1
answer
2k
views
Is there a compression tool with an arbitrarily large dictionary?
I am looking for a compression tool with an arbitrarily large dictionary (and "block size"). Let me explain by way of examples.
First let us create 32MB random data and then concatenate it to itself ...
7
votes
2
answers
7k
views
bzip2: Check file's decompressed size without actually decompressing it
I have a big bzip2 compressed file and I need to check it's decompressed size without actually decompressing it (similar to gzip -l file.gz or xz -l file.xz). How can this be done using bzip2?
2
votes
3
answers
1k
views
Difference between .bz2 and .tar.bz2 files
I am supposed to find whether a file is compressed using .bz2 or .tar.bz2(without using extension of file) and
and decompress it accordingly. I used the file command but it is giving same result for ...
9
votes
1
answer
1k
views
Can files compressed with bzip2 be relied upon to be deterministic (reproducible)?
I am trying to determine if there are any potential issues using bzip2 to compress files that need to be 100% reproducible. Specifically: can metadata (name / inode, lastmod date, etc) or anything ...
0
votes
2
answers
258
views
Copying files, verifying and then zipping with a shell script
I am looking to create a script - a linux or a python scrip so that it can create the following things for me as well as Verify the files for me which are copied from a folder.
I Have two folders:
...
2
votes
2
answers
6k
views
BZIP2 multiple files without losing original files
I want to bzip2 about 1000 files. However, I am tasked to not remove the old files and leave both the original and its bz2 file in the same folder. What is the quickest way to do this.
Just to ...