Get the App
SLTechnology News&Howtos  ›  Development  › 

How to delete a large file by linux

Shulou Source: shulou.com Published: 2022-06-01 05:12:59 11月17日 Update

This article mainly introduces linux how to delete a large file, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Delete a large file

I have a large 200GB log file on the production server that needs to be deleted. My rm and ls commands have crashed, and I'm afraid this is due to the huge disk IO. To delete this large file, type:

> / path/to/file.log # or use the following format: > / path/to/file.log # and then delete it rm / path/to/file.log Thank you for reading this article carefully. I hope the article "how to delete a large file in linux" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Documents articles huge great value interest at the same time commands logs more friends servers formats knowledge disk tape industry information information channels this is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MySQL OPPO Reno Shulou Tech Info vpn