Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

How to ZIP a lot of folders but exclude any subfolder (recursively) called "node_modules" [duplicate]

$
0
0

I have a lot of directories in the initial folder and I want to zip everything , but excludeall the node_modules folder of each directory , I tried this:

zip -r all_repos.zip . -x '*node_modules*'

But it doesn't exclude all sub-folders.

Any idea how to do it recursively ?


Viewing all articles
Browse latest Browse all 2795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>