The zip command
package and compress (archive) files 4 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Options in the examples
-e- Encrypt the contents of the zip archive using a password which is entered on the terminal in response to a prompt (this will not be…
-r- Travel the directory structure recursively; for example:
Examples
zip archive.zip file1.txt file2.txt
zip -r archive.zip directory/Recursive (for directories)
zip -9 archive.zip files/Maximum compression
zip -e secure.zip file.txtAdd password