Questions tagged [bzip2]

high-quality data compressor

bzip2 is a high-quality data compressor.

21 questions
42
votes
5 answers

What's the best way to use parallel bzip2 and gzip by default?

Bzip2 and gzip only use one core, although many computers have more than one core. But there are programs like lbzip2, pbzip2 and pigz, which use all available cores and promise to be compatible with bzip2 and gzip. So what's the best way to use…
elmicha
  • 9,960
35
votes
2 answers

Why I can't uncompress a .bz2 file using tar?

So I have this wikipedia dump sized at about 10gb and named as "enwiki-latest-pages-articles.xml.bz2". I have been trying the following commands in the terminal to unzip the dump: tar jxf enwiki-latest-pages-articles.xml.bz2 And tar xvf…
20
votes
4 answers

Any linux command to perform parallel decompression of tar.bz2 file?

I have a rather large file (~50GB) and it takes some time to run tar xvf file.tar.bz2 on it. I'm aware of programs that can do parallel compression for bzip2 files but unaware of programs that can do parallel decompression for bzip2 files. Are…
user784637
  • 11,465
11
votes
2 answers

What should I rely on lbzip2 or pbzip2?

As bzip2 claims to compress best (in size), I decided to use it. The working server can offer 24 (virtuals) CPUs (4 real X5650 @ 2.67GHz) - and thus I decided to look for parallel variants. Using debian stable - sorry, but I found best matches…
11
votes
2 answers

gzip 2 files into one file

I want to gzip two or more files into one file, I checked this and this but both have files like: n1.txt, n2.txt, ... but my filenames are completely different, like: file.mp4, bar.txt, foo.jpeg and I want to gzip them all and put the output into…
5
votes
2 answers

Confusion between archiving and compressing?

I am confused about archiving and compression and I am going to write what I think is correct. Here are the commands that I wish to get a better understanding of: tar –c file > file.tar tar –cf file.tar file // this command and the previous one are…
3
votes
2 answers

Install native-bzip2 on Ubuntu 14.04

I have recently tried to build Hadoop 2.4 to use it's native libraries. And when I check that if hadoop is really using it. I get the following warning : WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system-native, will…
eliasah
  • 165
  • 3
  • 11
2
votes
1 answer

bzip2 error ubuntu 16.04 (xenial)

I downloaded a file from lynx sources site: http://invisible-mirror.net/archives/lynx/tarballs/?C=M;O=D Specifically this file: lynx2.8.8rel.2.tar.bz2 (tried several from the site). When I apply tar xjf to the file I receive the following error: …
2
votes
1 answer

How to archive files with multiple conditions?

How do I find all files in a folder(including subfolders) with extension jpg or bmp, with size between 6 and 46 kilobytes, last modified between 11 and 19 June 2011 or between 24 July and 2 August inclusively and add all these files to an…
johnny
  • 471
2
votes
1 answer

Where can I find bunzip (not bunzip2)?

I have an old bzip file that I need to unpack. However, I can only seem to find bunzip2, which does not read this bzip file. I have not been able to find any program that handles bzip files. Is there really nothing modern that can read such a file?
2
votes
2 answers

Uncompress file using bunzip2

I want to decompress a file, I wrote this command: bunzip2 linux-source-4.15.0.tar.bz2 and I got this: bunzip2: Input file linux-source-4.15.0.tar.bz2 is not a normal file. I want to know exactly what is the problem. I ran file…
2
votes
1 answer

Why is cmake not finding an installed package?

I'm trying to build this repo for neural networks implemented in CUDA. I've followed the instructions in that link and performed the following actions on a shell: git clone https://github.com/ANNetGPGPU/ANNetGPGPU.git cd ANNetGPGPU mkdir build cd…
Tendero
  • 133
1
vote
2 answers

Unpacking bz2 with tar

Extremely new to the command line (read: no clue what I'm doing), so I have been trying to teach myself some basic commands by doing some run of the mill stuff. Currently trying to install Marathon on my computer by following the instructions on:…
1
vote
1 answer

apt-get update gives bzip2 error on fresh Ubuntu 12.04(LTS) in Virtual Box version 4.2.18

A fresh install of Ubuntu 12.04(LTS) onto Virtual Box 4.2.18 seems to go well, however, I receive a bzip2 related error when trying to update. I was hoping a seasoned Ubuntu expert could help me decipher and correct the problem. Here is the…
1
vote
1 answer

bzcat to delete compressed file

By default, bzcat (or, equivalently, bzip2 -dc or bunzip2 -c) will keep the source (compressed file) and not delete it. Is there a flag or other means (besides thereafter manually rming the file) to delete the compressed file when using bzcat or one…
msh210
  • 115
1
2