Zip: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Linux Commands =Install from Scratch= <pre> yum install zip yum install unzip </pre> =Quiet= <pre> -q </pre> <font color=red> =Specify...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 49: | Line 49: | ||
zip -r ./target/something.zip * -x IntelliJ/\* | zip -r ./target/something.zip * -x IntelliJ/\* | ||
</pre> | </pre> | ||
=Store Symbolic Links as Such= | |||
Store symbolic links as such instead of compressing and storing the files referred by the symbolic link. | |||
zip ... -y|--symlinks ... | |||
=Encryption= | |||
zip <zip-file> <source-file(s)> -e | |||
Also see: {{Internal|Openssl_Operations#Encrypt.2FDecrypt|openssl Encrypt/Decrypt}} |
Latest revision as of 02:29, 27 March 2020
Internal
Install from Scratch
yum install zip yum install unzip
Quiet
-q
Specifying a Directory
TODO
Append to an existing archive
zip -g
Exclude Files
Use:
-x <name-or-patter> <name-or-pattern> ...
If there is no space between "-x" and the pattern, just one value is assumed, otherwise multiple values are assumed.
If you want to exclude an entire directory (the content and the directory itself), then you need to do something like this, where you specify the top level directory and its content, recursively, and also escaped to survive the shell interpretation:
zip -r ./target/something.zip * -x IntelliJ/\*
Store Symbolic Links as Such
Store symbolic links as such instead of compressing and storing the files referred by the symbolic link.
zip ... -y|--symlinks ...
Encryption
zip <zip-file> <source-file(s)> -e
Also see: