How would you avoid accidentally removing files in Linux?

Huỳnh Hiền

New member
How would you avoid accidentally removing files in Linux?
Answer
Prevent files from an accidental deletion in Linux
Now, I am going to
apply “i” attribute which makes the file immutable. It means you can’t delete, modify the file, even if you’re the file owner and the root user. Now, try to remove the file either as a normal user or with sudo privileges.
 

Tìm kiếm

Back
Top