Shell/Bash: terminal zip Example

By

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

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 mynewfilename.zip 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!

Others