on Unix m/c i have folder in which there are few more folders.. I wants to make zip file of parent folder. and i should able to unzip this zip file in windows m/c.. Can you please advice..
thanks in advance..
The easiest way to zip a folder on Linux is to use the “zip” command with the “-r” option and specify the file of your archive as well as the folders to be added to your zip file. You can also specify multiple folders if you want to have multiple directories compressed in your zip file.
Syntax : $zip –m filename.zip file.txt 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.
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”.
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.
given that the program 'zip' is available, the following should work:
zip -r archive_name.zip folder
From midnight commander highlight the directory that you want to zip, then press F2 to get to the user menu, then @ to perform an operation on it. You can now enter zip -r archive.zip
followed by return, where archive.zip is that name of the zip file that you want to create.
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