After that, you only have to execute the script and the files containing the searched string will be removed. Attention: You should take a look at remove.sh before executing it, just avoiding that files will be removed accidentally.
Many people know the problem: You have to find something, but you’re having no idea where to find it. Of course, you can use “locate” or “find” and search for the file. But what’s the best possibility for getting an overview about directories, files, binaries or subdirectories?
YES – it’s using the “tree” command. But what are you going to do, if you’re working on a managed server without any root-access and without the possibility to install tree?
Here’s a short solution for this problem:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^/]*//--/g' -e 's/^/ /' -e 's/-/|/'
If you did all these changes applying the SSH-settings and you installed fail2ban and rhunter you can say that your server is quite secure. Of course, this is no guarantee that your server won’t be hacked, but it makes it much harder. Read more...(174 words, estimated 42 Sek reading time)