Today, we make a file that can't be deleted*.
Note the asterisk. Of course, it can really be deleted, you just have to work at it. It's more useful for when you want to make it so that you don't mistakenly delete a file, because it takes some extra steps to delete the file. The tool is one that you should have installed already, called 'chattr' - which has nothing to do with chat but has to do with changing attributes.
linux-tips.us
Again, the file can be deleted - and I show you how. A smart user will realize that you've set the immutable bit and, if they have root/sudo, they'll be able to delete the file. If they do not have elevated permissions, they can't delete it. Well, they could reformat the partition... They could probably use a live instance where they do have root and delete it... But, again, the goal is making it harder to delete the file. Don't think of it as a security tool, think of it as a tool that helps you say 'oops' less often.
Note the asterisk. Of course, it can really be deleted, you just have to work at it. It's more useful for when you want to make it so that you don't mistakenly delete a file, because it takes some extra steps to delete the file. The tool is one that you should have installed already, called 'chattr' - which has nothing to do with chat but has to do with changing attributes.

How To: Prevent A File From Being Deleted* • Linux Tips
Today, we have another simple article, where we discuss how to prevent a file from being deleted. It's not quite true and I'll explain.

Again, the file can be deleted - and I show you how. A smart user will realize that you've set the immutable bit and, if they have root/sudo, they'll be able to delete the file. If they do not have elevated permissions, they can't delete it. Well, they could reformat the partition... They could probably use a live instance where they do have root and delete it... But, again, the goal is making it harder to delete the file. Don't think of it as a security tool, think of it as a tool that helps you say 'oops' less often.