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

Leave a Reply

avatar
  Subscribe  
Notify of