Compress an entire directory by running
tar -zcvf file.tar.gz /path/to/dir/
uncompress and tar file
tar -xvf <tar_file_name>
Compress an entire directory by running
tar -zcvf file.tar.gz /path/to/dir/
uncompress and tar file
tar -xvf <tar_file_name>