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.
posted @ 2010-12-11 12:29  super119  阅读(336)  评论(0编辑  收藏  举报