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.

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-11-17
  • 2021-11-13
猜你喜欢
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案