Get the App
SLTechnology News&Howtos  ›  Servers  › 

Delete a large number of files with find and rm commands under linux

Shulou Source: shulou.com Published: 2022-06-01 17:35:37 10月01日 Update

This article introduces the knowledge of "deleting a large number of files with find and rm commands under linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Delete files containing core.xxx

Find / www/python/python_api/app-name "core.*" | xargs rm-rf

Example: delete all files named abc.txt in the subdirectory under / home/raven:

Find / home/raven-name abc.txt | xargs rm-rf

This is the end of the content of "delete a large number of files with find and rm commands under linux". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Files commands content more knowledge practical successful learning next dilemmas subcategories subdirectories actual situation articles cases editing websites industries processes high quality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Shulou Tech Info Shulou Technology OPPO Reno