# Prevent accidently deleting a file or dir. Change attribute to let a file or directory cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. ``` bash= sudo chattr +i <file> ```