Get the App
SLTechnology News&Howtos  ›  Development  › 

How to delete 0-byte files or junk files by shell

Shulou Source: shulou.com Published: 2022-06-01 04:01:59 09月22日 Update

This article will explain in detail how shell deletes 0-byte files or junk files. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Delete 0-byte files or junk files

Find. -type f-size 0-deletefind. -type f-exec rm-rf {}\; find. -type f-name "a.out"-exec rm-rf {}\ find. Type f-name "a.out"-deletefind. Type f-name "* .txt"-print0 | xargs-0 rm-f this article on "how to delete 0-byte files or junk files by shell" ends here. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, please share it for more people to see.

Tags: Files garbage bytes articles more good practical content articles knowledge references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB MySQL Docker NVidia Microsoft