The adventures of Jay
  • About
  • Posts
  • Brews
  • Knacks
  • Links

Linux zip - Thu, Oct 12, 2023

Getting too much performance from your zip?

Wanting to create a backup of this website, I searched how to do maximum compression on linux. The result that came up showed some stellar performance.

I tried that same command zip -9 myzip.zip Desktop. It shrunk 68MB down to 12KB. WOW. That was until I realised there was nothing inside the zip. The above command did not use the -r options, which meant directories were not included. Teh correct command should have been zip -9 -r myzip.zip Desktop

Be wary when using linux commands and check if you need the recursive flag or not. A bunch of commands I use often and require the recursive flag are scp, rsync, chown, chmod. Happy zipping!

Back to Home


hugo.386 theme by Max le Fou | © J Bracken 2024 | Lead for a better world.

GitHub GitLab