如何在Linux上删除非常大的文件

时间:2021-06-23 21:36:15

I have a 63 GB file that needs deleting on Linux. My trash is only 6 GB right now. I tried to split the 63 GB file into 63 1 GB files, and that worked. However, the file I split remains, so I still cannot delete it. I wanted to unzip this 63 GB file, but I found when I did that that it had a few places that were corrupt in it, so I have to delete it and try again.

我有一个63 GB的文件需要在Linux上删除。我的垃圾现在只有6gb。我试图将63 GB文件分割为63 1gb文件,这是可行的。但是,我分割的文件仍然保留,所以我仍然不能删除它。我想解压这个63 GB的文件,但我发现它有几个地方坏了,所以我必须删除它,然后再试一次。

Originally, I had 63 1GB files, .z01, .z02, .z03....,.z62,.zip. I searched the internet, and found that the way to unzip this massive amount of files, was to first join them together, and that is the 63 GB file. However, when I tried to unzip it, it only partially unzipped, and did not work, so I now need to delete this 63 GB file, and start again trying to join together the 63 zip files (.z01, .z02....,.z62,.zip) together in hopes that they are not partially corrupt this time, so that I may then unzip them to obtain my families memories.

最初,我有63个1 gb文件,.z01,.z02,.z03 ....,.z62 . zip。我搜索了一下互联网,发现解压缩这么多文件的方法是首先将它们连接在一起,这就是63 GB的文件。但是,当我尝试解压它时,它只是部分解压,并且不能工作,所以我现在需要删除这个63 GB的文件,然后重新尝试将63个zip文件(。z01,.z02 ....、.z62 . zip)在一起,希望他们不是部分腐败这一次,这样我可能会解压缩他们家庭的记忆。

A web site on which I had stored years of photos and videos is shutting down, and they sent me this zip files that must be joined together before they can be unzipped.

一个我储存了多年照片和视频的网站关闭了,他们给我发送了这个zip文件,这些文件在解压之前必须连在一起。

I did try the procedure on another 2 zip file total directory that this place sent me, so .z01,.zip (each 1 GB) were joined together in one 2 GB file. I then unzipped these successfully without issue, and obtained some other upload from this site, and the 2 GB file deleted of course with no problem. I used a program I downloaded from the internet to join them together (called HJ Split that both joins and splits files together). However, I think I could have used the command line "join" to join the 2 zip files together too. I used "unzip" to unzip the 2 joined files into my directories of photo and video memories on Linux.

我确实在这个地方发送给我的另一个2 zip文件total目录上尝试了这个过程,所以。z01。zip(每个1 GB)被连接在一个2 GB的文件中。然后我成功的解压缩了这些文件,没有问题,并从这个网站上获得了一些其他的上载,当然也删除了2gb的文件,没有问题。我使用从internet下载的程序将它们连接在一起(称为HJ拆分,将文件合并在一起)。不过,我想我也可以使用命令行“join”将两个zip文件一起加入到一起。我用“unzip”将2个文件解压到我在Linux上的照片和视频记忆目录中。

Also - would it be possible to just increase the size of my trash temporarily to over 63 GB, so I can delete that corrupted file? I had thought when I split that file, once that procedure completed it would delete the old huge file, but it's still there! I can't get rid of it to start over. The command I used was: split --bytes=1G joined_63GB_file.zip

另外,是否可以将垃圾文件的大小暂时增加到超过63 GB,以便我可以删除损坏的文件?我曾经想过,当我分割那个文件的时候,一旦这个过程完成,它就会删除那个巨大的旧文件,但它仍然存在!我无法摆脱它重新开始。我使用的命令是:split -bytes=1G joined_63GB_file.zip

Thank you - any help will help recover years of my family's memories, especially when my kids were very young.

谢谢你——任何帮助都能帮助我恢复家人多年的记忆,尤其是我的孩子还很年轻的时候。

1 个解决方案

#1


3  

As the comments have mentioned, you can drop down into the terminal and just type rm FileName to skip the trash when deleting.

正如注释中提到的,您可以下拉到终端,输入rm文件名,以便在删除时跳过垃圾。

Alternately, if you are using a GUI file explorer, you can generally just use Shift-Delete to directly delete and skip the trash.

另外,如果您正在使用GUI文件资源管理器,您通常可以使用Shift-Delete直接删除和跳过垃圾。

#1


3  

As the comments have mentioned, you can drop down into the terminal and just type rm FileName to skip the trash when deleting.

正如注释中提到的,您可以下拉到终端,输入rm文件名,以便在删除时跳过垃圾。

Alternately, if you are using a GUI file explorer, you can generally just use Shift-Delete to directly delete and skip the trash.

另外,如果您正在使用GUI文件资源管理器,您通常可以使用Shift-Delete直接删除和跳过垃圾。