On my 3 TB external hard drive, I have a 2.7 TB directory containing relatively small files. I would like to compress this 2.7 TB directory and remove it to keep only the compressed version. The issue is that I do not have enough storage to first zip and then rm the non-zipped directory.Is there a way around this problem or do I necessarily have to acquire more storage for the manipulation?
Compress and remove original directory with limited storage
bash;zip;storage;compression