Skip to content

How to tar.gz

If you are in the same directory as where your files / folders are placed, then you dont have to specify the file location. i.e.

This is how to make a .tar.gz from a Folder

i.e if you are in /path/to/output/ and you want to put the file in /path/to/output/ you can use the following command.

This is how to extract a .tar.gz file

or like i do…

i.e if you are in /path/to/folder/

You can do the following…

View a list of all files in a .tar.gz archive

i.e if you are in /path/to/folder/

You can do the following…

Extract a single file from a .tar.gz file

i.e if you are in /path/to/folder/

You can do the following…

You can also add a date stamp to the tarball by using the following example below…

comments powered by Disqus