How to Compress a Folder to a Zip File in Linux

Zipping a folder allows you to combine multiple files into one smaller package for easy transfer.

Creating a Zip Archive

  1. Open your terminal.
  2. Type zip -r archive_name.zip folder_to_compress/.
  3. The -r flag stands for recursive, ensuring everything inside the folder is included.
  4. Press Enter to generate your Zip file.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.

Receive our best articles and tips delivered straight to your inbox.