Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 729 Bytes

File metadata and controls

43 lines (24 loc) · 729 Bytes

Compress the file but exclude node modules

tar -czvf archive.tar.gz --exclude=./node_modules .

To compress

zip -r archive_name.zip folder_to_compress

To extract

unzip archive_name.zip

If you want to make a zip without those invisible Mac resource files such as “_MACOSX” or “._Filename” and .ds store files, use the “-X” option in the command so:

zip -r -X archive_name.zip folder_to_compress

Zip but exclude node modules

zip -r -X node_modules archite.zip * -x node_modules/*

Archive hidden folders

$ zip -r Archiv.zip  * .*

Zip hidden

$ zip -r Archiv.zip **/**.tfvars

Zip with password

$ zip -er out.zip ./target_folder