megacolorboy

Back

Published on May 25th, 2020

Terminal

Including and excluding files in zip

When zipping a directory or a bunch of files, there'll be a lot of stuff that you want to include and exclude.To exclude a file:Alternatively, you can choose to include files:

1 minute read

When zipping a directory or a bunch of files, there'll be a lot of stuff that you want to include and exclude.

To exclude a file:


zip -r files.zip . -x file_1 file_2

Alternatively, you can choose to include files:


zip -r files.zip . -i file_1 file_2