Thu 28 Jan 21 in Coding

Zip / Unzip files using the command line

#Snippets

Add a single file to the zip


zip [ zip name ].zip [ filename ].jpg

 

Add file, to an already build archive


zip -g [ zip name ].zip folder/file

 

Recursively zip multiple folders


zip -r [ zip name ].zip folder/

 

In order to unzip your archive use


unzip [ zip name ].zip