Zipping a file or folder

$ zip [options] inpath[ inpath ...]
Option Arguments Description
-r Travel the directory structure recursively. For use if input is a folder
-@ none but really stdin Each line of stdin is a file to be added to the archive. e.g. find . -name "*.[ch]" -print[1]
-e Encrypts the archive and prompts the user for the password securely
-P password password: The password for the archive Encrypts the archive with the given password

Unzipping a file

$ unzip [options]
Option Arguments Description
-d dir dir: folder for extracted contents Extract contents of archive to dir



Last modified: 202206101419