Claim your Biolink Click Here
0 like 0 dislike
486 views
in Education & Reference by (820 points) | 486 views

1 Answer

0 like 0 dislike

Unzip and Untar Those tar.gz or tar.bz2 Files in One Step
by Lowell Heddings on December 1st, 2009

If you are new to the world of Linux, you probably unzip your tar.gz files first, and then extract them from the tar file… at least, if you are even bothering to use the command prompt at all. It’s easy to gunzip or even bunzip2 the files with a simple command-line switch.

To gunzip and untar a file in a single step, use the following—note that the z switch is the important one that tells tar to unzip it.

tar xvfz somefilename.tar.gz

To use bunzip2 to extract your tar.bz2 file in a single step, use the j switch instead.

tar xvfj somefilename.tar.bz2

Ahh, nice and simple, just the way we like it.

by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
2 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,314 questions
1,476 answers
569 comments
4,809 users