Contents
4. -r Option: To zip a directory recursively, use the -r option with the zip command and it will recursively zips the files in a directory. This option helps you to zip all the files present in the specified directory.
How do I zip a specific file in Linux?
In order to zip multiple files using the zip command, you can simply append all your filenames. Alternatively, you can use a wildcard if you are able to group your files by extension.
How do I zip a specific file?
Windows: How to Zip (Compress) Multiple Files
- Use “Windows Explorer” or “My Computer” (“File Explorer” on Windows 10) to locate the files you wish to zip. …
- Hold down [Ctrl] on your keyboard > Click on each file you wish to combine into a zipped file.
- Right-click and select “Send To” > Choose “Compressed (Zipped) Folder.”