The chattr command in Linux is a file system command used to change the attributes of files in a directory. The main use of this command is to make multiple files unchangeable by users other than the superuser. As we all know, Linux is a multi-user operating system, and it's possible for one user to delete files that another user cares about, administrators said. To avoid this situation, Linux provides " chattr ". In short, "chattr" can make files immutable, undeletable, append-only, and more!
overview:
chattr [ -RVf ] [ -v version ] [ mode ] file...
in pattern characters