Is it possible to remove the already unpacked files from .tar?
0
votes
1
answer
1161
views
I have a
.tar
file which takes up about 70% of my disk space and I would need to unpack it to the same disk. Does the tar
command have an option to remove the files that have already been unpacked during the process so that they don't take up the space any more? The --delete
option seems to be able to remove specific files from the .tar
archive, but is there a way to tell tar
to always remove the last one that has just been unpacked? This way as the unpacked files size increases, the .tar
size would decrease all the way to zero in the end.
Moreover, if the process is interrupted, it could be continued from where it was left since only the unpacked files would still be present in the .tar
.
Asked by Botond
(135 rep)
May 27, 2021, 02:02 AM
Last activity: May 29, 2021, 04:11 PM
Last activity: May 29, 2021, 04:11 PM