Skip to main content

Compress an entire directory or a single file

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

Extract an Archive

tar -xzvf archive.tar.gz


Note

Sometimes you will need to use/be sudo to allow this to work on SS assets for example.