I have the following directories, I want to zip up into the same zip file. Can someone provide the correct syntax?
ie. zipping the following directories:
into a zip file called backup.zip.
Select the “Files” option : your file explorer should start automatically. Now that you are in your file explorer, select multiple folders by holding the “Control” key and left-clicking on all the folders to be zipped. When you are done, right-click and select the “Compress” option.
Right-click on the file or folder. Select “Compressed (zipped) folder”. To place multiple files into a zip folder, select all of the files while hitting the Ctrl button. Then, right-click on one of the files, move your cursor over the “Send to” option and select “Compressed (zipped) folder”.
Zipping Multiple FilesHold 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."
To compress a single file by running tar -zcvf file. tar. gz /path/to/filename command on Linux. Tar and compress multiple directories file by running tar -zcvf file.
try
zip -r backup.zip /home/users/jlefler/files /opt/software/reports/files
you can add more directories at the end of the command
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With