chattr Command Examples

Change attributes of files or directories. More information: https://manned.org/chattr.

chattr +i {{path/to/file_or_directory}}

chattr -i {{path/to/file_or_directory}}

chattr -R +i {{path/to/directory}}