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.
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -xzvf archive.tar.gz
Sometimes you will need to use/be sudo
to allow this to work on SS assets for example.