tar : compression or decompression

(1) tar: tape archive

binding only *.txt files

$> tar -cvf test.tar *.txt


binding a.txt, b.txt to test.tar

$> tar -cvf test.tar a.txt b.txt


binding current files and subdirectories to test.tar

$> tar -cvf test.tar *


check inside

$> tar -tvf test.tar


show advise.

tar –help


(2) bz2: binding several tar files and compressing by bzip2.


$> tar -xvf test.tar.bz2


see inside

$> tar -tvf test.tar.bz2




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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.