[Solved] Possible to lock a folder? To prevent it from being deleted.
Hi there, I'm on Bazzite KDE and recently somehow lost a my "gaming" folder..? No idea how but must gave been user faulty, e.g me. Therefore wondering if it's possible to lock certain folders so that this cannot accidentally happen?
I was going to ask how this can help, but looking into it its quite interesting. The attribute u in example will trigger an event asking the user for undeletion. That's new to me! But one should read the bugs and limitations of this attribute. So anyone be careful. Also I wonder if this works with folders including lot of large files, and if it depends how a file was deleted (rm command, GUI or automated through script?).
Every modification and deletion is prevented regardless of the method, be it mv, rm or other commands on the terminal or through a GUI, with or without sudo until sudo chattr -R -i /path/to/directory is performed