How to delete server files at once
How to delete server files at once, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.
Today, open the server and enter the root directory ls.
Found that inexplicably there are a lot of useless interface log files to check.
I found that I recorded the log when I wrote the server scheduled task some time ago. It is saved directly in the root directory without choosing a save location.
Rm-rf / root/api.php?s=Tongcheng* was executed when I was ready to delete the useless file
The enter execution reported an error.
Cannot execute [Argument list too long]
Baidu checked and found that there are too many files to use this command, so xargs come out my Pikachu.
Find / root-name "api.php?s=TongCheng%*" | xargs rm-r is deleted successfully by directly entering the command
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.