Delete a large number of files with find and rm commands under linux
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!