Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of deleting specified files by linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of deleting the specified file by linux, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Linux method to delete a specified file: use the delete command [find specified folder /-name this.html~ | xargs rm-rf]. There is no file name [fingerprint.default_WFH.so] file in the out directory, all of which have been deleted.

Linux method to delete the specified file:

1. Sometimes you need to delete the file name command specified under a folder directory, because sometimes the subdirectory contains many files with such file names. If you delete one by one, it is very troublesome. Here is a good method. I have tested it myself, and it can be used, and it is very convenient and efficient to use it.

2. Command format:

/-name this.html~ specified by find | xargs rm-rf

3. I want all the fingerprint.default_WFH.so files in the delete out/ directory now.

4. First, let's take a look at so many fingerprint.default_WFH.so files in my project's out directory.

5. Then execute the command: find out/-name fingerprint.default_WFH.so | xargs rm-rf command. Take a look at the result. There is no file name fingerprint.default_WFH.so file in the out directory. It has been deleted. It's a very powerful command.

6. Of course, this command can be extended and is very practical.

A: delete all directories and the file name is fingerprint.default_WFH.so file:

Find /-name fingerprint.default_WFH.so | xargs rm-rf

B: delete all directories with the suffix so file:

Find /-name *. So | xargs rm-rf Thank you for reading this article carefully. I hope it will be helpful for everyone to share the content of the method of deleting the specified file by linux. At the same time, I also hope that you will support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report