To tar and gzip a folder use this command: tar -cvzpf filename.tar.gz /path/to/folder

To ungzip the same file use this command:tar -xvzpf filename.tar.gz

Note: Gzipping using this matter will not affect your current folder and its content.

Advertisements