简体   繁体   English

想要在tar命令中排除文件夹

[英]Want to exclude folder in tar command

I want to exclude test4 folder from the tar command. 我想从tar命令中排除test4文件夹。

Following is the command using - but its not working 以下是使用-的命令-但不起作用

tar -czvf back.test.tar.gz test/ --exclude=test/test4/

知道了,去掉斜杠'/'就像一个魅力

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM