I have a very important file which an application in my workplace uses, i need to make sure it is not delete whatsoever, how can I do that?
Linux – Is there a way to prevent/protect a file from being deleted even by root
fileslinux
Related Topic
- Linux – How to Show Total Progress in Rsync
- Linux – quick way to get the very last file in a large TAR
- Linux – the fastest way to “clone” a file in Linux
- Linux – How to prevent file owner from changing/deleting their own file? Linux CentOS
- Linux Cron – Why is My Crontab Not Working and How to Troubleshoot
Best Answer
Yes, you can change the attributes of the file to read-only.
The command is:
And to disable it:
From
man chattr
: