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.

你可能感兴趣的:(exclude)