How to Zip a file/folder

Zip a Single File

To make a zip of single file, execute the below command:

#zip file.zip file1 file2

Zip Multiple Files

To make a zip of multiple files, execute the below command:

#zip file.zip file1 file2

Zip Single Folder

To make a zip of folder/directory, execute the below command:

#zip file.zip dir1

To make a optional zip of folder/directory, execute the below command:

#zip -option file.zip dir1
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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