Quickly create tar.gz archive:

tar -cvzf tar_file_name.tar.gz ITEMS_TO_BE_COMPRESSED

ITEMS_TO_BE_COMPRESSED — can be single file, single folder, or group of files.

Quick uncompress:

tar -xvzf tar_file_name.tar.gz
# Uncompressing to different folder.
tar -xvzf tar_file_name.tar.gz -C ./path/for/uncompressed/content

./path/for/uncompressed/content should already exists


https://osxdaily.com/2012/04/05/create-tar-gzip/ https://askubuntu.com/questions/25347/what-command-do-i-need-to-unzip-extract-a-tar-gz-file#25348
⤧  Next post Convince Eclipse to use other JavaVM than default ⤧  Previous post sed — filter lines and more