I have a vps server that had been attacked with a virus which keeps injecting many hidden files. How can I delete all hidden files in directories and sub directories of the public_html
folder, except two files: .htaccess
and .user.ini
?
I have tried the below Linux command, but without success:
find "public_html" -type f -name '.*' -delete !(".htaccess"|".user.ini")