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 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments