Browse - Computer Tips - How do I make a file undeletable?

Date: 2011apr19
OS: Linux

Q.  How do I make a file undeletable?

A.  Use chattr to set the immutable extended attribute flag:

chattr +i myfile
Or
chattr -R +i myfolder
There is an undeletable flag but it doesn't work.