# to compress tar -zcvf archive_name.tar.gz folder_to_compress # to extract tar -zxvf archive_name.tar.gz # the "v" flag is for verbose and is not required