tar解包的时候如何exclude一些目录

Howto exclude file/directory when untar a archive

Add --exclude <pattern> at the END of the command line.

E.g:

tar jxvf <tar file path> --exclude "src/linux"

This makes all file/directory which their path includes "src/linux" will not be untared.
原文地址:https://www.cnblogs.com/super119/p/1902906.html