Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以前从未在 Shell 中编码,需要 TAR 7 个文件,5 个位于一个目录中,两个位于另一个目录中。听起来很简单,对吧?应该。我猜我们将变量分配给每个文件,然后将它们 TAR。这个语法是如何工作的?
tar -zcvf -T <file_name> abc.tar.gz
where<file_name>包含要包含在 .tar.gz 中的文件列表
<file_name>