删除文件增加tar归档后 [英] Deleting files after adding to tar archive
本文介绍了删除文件增加tar归档后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有很多小文件的文件夹,总计超过4Gib。
I have a folder with lots of small files, totaling over 4Gib.
我在非常有限的磁盘空间的工作。我需要他们都加到一个bzip2压缩的tar归档,但我没有磁盘空间进行一次。
I'm working with very limited disk space. I need to add them all to a bzipped tar archive, but I don't have the disk space to make one.
有没有办法删除的每个文件它添加到压缩文件后,所以不运行的空间?
Is there a way to delete each file after it's added to the archive, so I don't run out of space?
推荐答案
使用的GNU tar,使用选项 - 删除 - 文件
With GNU tar, use the option --remove-files
.
这篇关于删除文件增加tar归档后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文