Unpacking tar archives

To unpack a tar archive, you need to use the -x option (for extract):

[email protected]:~/temp> tar -xvf directory.tar or [email protected]:~/temp> tar -zxvf directory.tgz or [email protected]:~/temp> tar -jxvf directory.tar.bz2 Here the options have the following meanings:

♦ The -x option to tar means "extract."

♦ The z option implies that you are uncompressing a tar archive where gzip compression has been used.

♦ The j option is needed if you are extracting an archive where bzip2 compression has been used.

Was this article helpful?

0 0

Post a comment