Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to delete server files at once

Shulou Source: shulou.com Published: 2022-06-02 03:23:19 11月08日 Update

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.

Tags: File server service command log root directory help clear success task location content this interface article novice time time more come on Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia macOS Docker Apple Xiaomi