chattr
chattr is a Linux command used to change file attributes on filesystems that support extended attributes, most commonly ext2, ext3, and ext4. File attributes are special flags stored in inodes that can modify how the system handles a file beyond standard permissions. chattr can set or clear these attributes, and the effects depend on the attribute and the filesystem.
Two attributes are commonly discussed. The immutable attribute, i, makes a file unmodifiable, undeletable, and unrenamable
Usage is straightforward. The syntax is chattr [operator][attribute] file[...], where operator is + to set, - to clear,
Limitations include that not all filesystems support chattr, and attributes are specific to the filesystem type