Shell/Bash: terminal zip Example


Shell/Bash Example: This is the "terminal zip" Example. compiled from many sources on the internet by

terminal zip

# 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

zip folder terminal

zip -r foldertozip/

compress file in terminal

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

* Summary: This "terminal zip" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!