gzip, bzip, tar: compression and decompression

캡처

From wiki

 

(1) gzip

 

compress gzip cvs.pdf
decompress gzip -d cvs.pdf.gz  or gunzip cvs.pdf.gz

(2) bzip2

compress bzip2   cvs.pdf
decompress bzip2   -d   cvs.pdf.bz2    or   bunzip2 cvs.pdf.bz2

 

 

(3) tar (most common)

compress: tar cvf test.tar test

decompress1: tar  xvfz  test.tar.gz

decompress2: tar  xvfj   test.tar.bz2

 

So Simple 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s