Posts Tagged ‘tar’

How to unpack .tar.gz?

Thursday, July 15th, 2010

To unpack a tar archive ending in .tar.gz use the following command:


tar -xzf archive.tar.gz

How to create a .tar.gz archive?

Wednesday, June 17th, 2009

Go inside the director you want to create an archive of and write:

# tar -czf archive.tar.gz *

The * means all the files. You can use other filters if you wish.