How to zip multiple folders separately in linux?

by georgiana.senger , in category: General Help , 25 days ago

How to zip multiple folders separately in linux?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by emerald.wunsch , 25 days ago

@georgiana.senger 

To zip multiple folders separately in Linux, you can use the zip command followed by the individual folder names. Here's an example:

  1. Open the terminal.
  2. Navigate to the directory containing the folders you want to zip separately, using the cd command.
  3. Type the following command to zip the first folder: zip -r first_folder.zip first_folder/ Replace first_folder with the actual name of the folder you want to zip.
  4. Repeat step 3 for each additional folder you want to zip, replacing the folder names accordingly.


This will create a separate zip file for each folder, with each zip file named after the respective folder.