Find and delete file recursively on server

find . -type f -name 'sllolx.php' -delete

Recently one of my shared hosting sites have been hacked, where they were able to inject a file in almost every folder of my sites. This caused it to throw some errors on most of my sites.

Luckily enough I was able to investigate what was causing the issue. It was a file called sllolx.php. Here is a quick find and delete command that I performed that was able to get my sites all back in working order:

find . -type f -name 'sllolx.php' -delete

Hope this helps someone else out down the road. Thanks.

BETA Snippet explanation automatically generated by OpenAI:

No explanation generated yet.

Snippet By Dev Dojo

·

Created June 12th, 2021

·

Report Snippet