chattr (abbreviation of Change Attribute) is a command line tool used to prevent files and folders from accidental deletion or modification in Unix-like distributions.
Source: LXer – How To Prevent Files And Folders From Accidental Deletion Or Modification In Linux