Creates ZIP archives.
Test archive integrity
zip -T x.zip
Create/update zip archive (add/update file)
zip x.zip ~/.bashrc ~/.profile
x.ziparchive file (if not exist) and adds
Add directory and its content
zip -r x.zip ~/Documents
-rnothing is added.
Add all names except directories
zip -D x.zip ~/*
Set password while add/update files
zip -P my-password x.zip file-to-add-or-update.txt
Store-only mode (fast, without compression)
zip -0 x.zip ~/Pictures
Fast compression mode (fast, low compression)
zip -1 x.zip ~/Pictures
Ultimate compression mode (slow, maximum compression)
zip -9 x.zip ~/Pictures
Delete file from archive
zip -d x.zip .bashrc
About Living in the Shell
Obsessed with doing things in the shell, I’ve decided to share my daily struggles on living in the shell as terse but informative posts.