How to convert a file of format tar.gz to tar.bz2?
6,170
You can combine the two commands as following:
gunzip < file.gz | bzip2 > file.bz2
This will start two processes in parallel, gunzip
reading the file.gz
file and outputting the non-compressed stream to bizp2
to re-compress it into file.bz2
.
This process does not create intermediate files, you'll need to remove the file.gz
afterwards (rm file.gz
).
Related videos on Youtube
Author by
Chase T.
I am a software engineer who actively maintains and develops a number of Ruby on Rails apps. I contribute on SO because this is where I can find all my programming questions and answers rapidly. #SOreadytohelp https://www.codeschool.com/users/chasetran7
Updated on September 18, 2022Comments
-
Chase T. over 1 year
Like the title says, how do I do this conversion from the Linux console?
-
Peter Ilfrich over 7 yearsDoesn't seem to work on Mac:
No such file or directory
for the new archive.